[openssh-commits] [openssh] 02/02: conditionalise stdint.h inclusion on HAVE_STDINT_H

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Jul 18 15:42:07 AEST 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 750911fd31d307a767cc86e3bfa90bbbb77b1a25
Author: Damien Miller <djm at mindrot.org>
Date:   Tue Jul 18 15:41:12 2023 +1000

    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 <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 dc498bd9..e77b869b 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 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>
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 <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"

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list