diff options
| author | Faraz Vahedi <kfv@kfv.io> | 2026-05-11 06:05:18 +0000 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2026-08-02 11:17:45 +0000 |
| commit | 296c05f7212c37bd6e6bf7e42af11d42a275d493 (patch) | |
| tree | 045879ebdb303b08fafdfa51d0b2c837ad067b8c | |
| parent | 16e47f317c4ce2be5fed530bf8a9af9f9bf55364 (diff) | |
libutil++: Include <cerrno> in stringf.cc
stringf.cc uses errno and related macros without including <cerrno>.
Their availability is guaranteed only when the corresponding header
is included; transitive exposure is implementation-defined.
Modern libc++ has been progressively reducing incidental transitive
includes as part of its header removal policy (see LLVM libc++ Header
Removal Policy and D132284), making such dependencies brittle.
This change includes <cerrno> explicitly to make the dependency
well-defined. No functional or behavioural change intended.
Approved by: fuz
Signed-off-by: Faraz Vahedi <kfv@kfv.io>
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2188
| -rw-r--r-- | lib/libutil++/libutil++.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libutil++/libutil++.hh b/lib/libutil++/libutil++.hh index 60e6b3fc5fde..3ba46ed5c506 100644 --- a/lib/libutil++/libutil++.hh +++ b/lib/libutil++/libutil++.hh @@ -13,6 +13,7 @@ #include <netdb.h> #include <unistd.h> +#include <cerrno> #include <cstdarg> #include <cstdio> #include <cstdlib> |
