]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
conditionalise stdint.h inclusion on HAVE_STDINT_H
authorDamien Miller <djm@mindrot.org>
Tue, 18 Jul 2023 05:41:12 +0000 (15:41 +1000)
committerDamien Miller <djm@mindrot.org>
Tue, 18 Jul 2023 05:41:12 +0000 (15:41 +1000)
fixes build on AIX5 at least

auth-options.c
misc.c
regress/misc/fuzz-harness/agent_fuzz.cc
sk-usbhid.c
ssh-xmss.c

index 785a239903379827363c13922ddc0af3db64be95..c89b1ee58c7790d184c1668c8b9230d9607fc393 100644 (file)
@@ -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 dc498bd93498bd75e9289b369eaefa6f3185d150..e77b869be4e62aa91515a750d2421e1b46222cfe 100644 (file)
--- 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>
index ad85b2f9a29750c1c5cc8c9b48081e5571619bcd..3013f54d599116cbf8fb2d9a78d43e515f16fa6b 100644 (file)
@@ -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);
index 7bb829aa77b4b347c707df8531063cf69fdd365c..812b28d83e922866c923d31a2c6ad81b9a041d67 100644 (file)
@@ -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>
index b3aec0f72df0f6608b8d8d6b5609e43df3666c9e..b6d0561b14118aa8feb10b8e90f1faf881b764ac 100644 (file)
@@ -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"