diff options
author | Damien Miller <djm@mindrot.org> | 2023-07-18 15:41:12 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-07-18 15:41:12 +1000 |
commit | 750911fd31d307a767cc86e3bfa90bbbb77b1a25 (patch) | |
tree | 895aac5d6779f68ac7d82f06d5d6319dd853ff3e | |
parent | ff047504fa6e008c4092f8929881816b8993bea0 (diff) |
conditionalise stdint.h inclusion on HAVE_STDINT_H
fixes build on AIX5 at least
-rw-r--r-- | auth-options.c | 4 | ||||
-rw-r--r-- | misc.c | 4 | ||||
-rw-r--r-- | regress/misc/fuzz-harness/agent_fuzz.cc | 4 | ||||
-rw-r--r-- | sk-usbhid.c | 4 | ||||
-rw-r--r-- | ssh-xmss.c | 4 |
5 files changed, 15 insertions, 5 deletions
diff --git a/auth-options.c b/auth-options.c index 785a2399..c89b1ee5 100644 --- a/auth-options.c +++ b/auth-options.c @@ -24,7 +24,9 @@ #include <pwd.h> #include <string.h> #include <stdio.h> -#include <stdint.h> +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif #include <stdarg.h> #include <ctype.h> #include <limits.h> @@ -38,7 +38,9 @@ #include <signal.h> #include <stdarg.h> #include <stdio.h> -#include <stdint.h> +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif #include <stdlib.h> #include <string.h> #include <time.h> diff --git a/regress/misc/fuzz-harness/agent_fuzz.cc b/regress/misc/fuzz-harness/agent_fuzz.cc index ad85b2f9..3013f54d 100644 --- a/regress/misc/fuzz-harness/agent_fuzz.cc +++ b/regress/misc/fuzz-harness/agent_fuzz.cc @@ -1,7 +1,9 @@ // cc_fuzz_target test for ssh-agent. extern "C" { -#include <stdint.h> +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif #include <sys/types.h> extern void test_one(const uint8_t* s, size_t slen); diff --git a/sk-usbhid.c b/sk-usbhid.c index 7bb829aa..812b28d8 100644 --- a/sk-usbhid.c +++ b/sk-usbhid.c @@ -20,7 +20,9 @@ #ifdef ENABLE_SK_INTERNAL -#include <stdint.h> +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif #include <stdlib.h> #include <string.h> #include <stdio.h> @@ -25,7 +25,9 @@ #include <stdlib.h> #include <string.h> #include <stdarg.h> -#include <stdint.h> +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif #include <unistd.h> #include "log.h" |