diff options
| author | Jessica Clarke <jrtc27@FreeBSD.org> | 2025-10-22 20:06:02 +0000 |
|---|---|---|
| committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2025-10-22 20:06:02 +0000 |
| commit | 34e7a57673c9730ee5d1f7ebb07e152567bd8e0b (patch) | |
| tree | f830d0a46bd18c3b3bcc2da95cdc8f078c4b833e | |
| parent | 69415879e9e493cba78b3a4afb1a78d813a2eb8a (diff) | |
krb5: Include <features.h> on Linux so __GLIBC__ can be checked
__GLIBC__ is not pre-defined by the toolchain, it comes from features.h,
so we need to make sure that's included by this point.
Fixes: 4dd2b869cd07 ("krb5: Fix -Wint-conversion when bootstrapping on GNU/Linux")
| -rw-r--r-- | krb5/include/autoconf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/krb5/include/autoconf.h b/krb5/include/autoconf.h index f1cf42d8f90f..760aca79176b 100644 --- a/krb5/include/autoconf.h +++ b/krb5/include/autoconf.h @@ -691,6 +691,9 @@ #define STDC_HEADERS 1 /* Define to 1 if strerror_r returns char *. */ +#ifdef __linux__ +#include <features.h> +#endif #ifdef __GLIBC__ /* Bootstrapping on GNU/Linux */ #define STRERROR_R_CHAR_P 1 |
