From 750911fd31d307a767cc86e3bfa90bbbb77b1a25 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 18 Jul 2023 15:41:12 +1000 Subject: conditionalise stdint.h inclusion on HAVE_STDINT_H fixes build on AIX5 at least --- auth-options.c | 4 +++- misc.c | 4 +++- regress/misc/fuzz-harness/agent_fuzz.cc | 4 +++- sk-usbhid.c | 4 +++- 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 #include #include -#include +#ifdef HAVE_STDINT_H +# include +#endif #include #include #include diff --git a/misc.c b/misc.c index dc498bd9..e77b869b 100644 --- a/misc.c +++ b/misc.c @@ -38,7 +38,9 @@ #include #include #include -#include +#ifdef HAVE_STDINT_H +# include +#endif #include #include #include 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 +#ifdef HAVE_STDINT_H +# include +#endif #include 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 +#ifdef HAVE_STDINT_H +# include +#endif #include #include #include diff --git a/ssh-xmss.c b/ssh-xmss.c index b3aec0f7..b6d0561b 100644 --- a/ssh-xmss.c +++ b/ssh-xmss.c @@ -25,7 +25,9 @@ #include #include #include -#include +#ifdef HAVE_STDINT_H +# include +#endif #include #include "log.h" -- cgit v1.2.3