summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--auth-options.c4
-rw-r--r--misc.c4
-rw-r--r--regress/misc/fuzz-harness/agent_fuzz.cc4
-rw-r--r--sk-usbhid.c4
-rw-r--r--ssh-xmss.c4
5 files changed, 15 insertions, 5 deletions
diff --git a/auth-options.c b/auth-options.c
index 785a23990..c89b1ee58 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>
diff --git a/misc.c b/misc.c
index dc498bd93..e77b869be 100644
--- a/misc.c
+++ b/misc.c
@@ -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 ad85b2f9a..3013f54d5 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 7bb829aa7..812b28d83 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>
diff --git a/ssh-xmss.c b/ssh-xmss.c
index b3aec0f72..b6d0561b1 100644
--- a/ssh-xmss.c
+++ b/ssh-xmss.c
@@ -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"