]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Wrap stdint.h in tests inside HAVE_STDINT_H.
authorDarren Tucker <dtucker@dtucker.net>
Sun, 26 Jan 2020 02:40:51 +0000 (13:40 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 26 Jan 2020 03:05:40 +0000 (14:05 +1100)
configure.ac

index 34cd94a7f7b3f4973c209c092d8e4607cf4201df..b689db4b5c563223a6dfc8a3d65e90a88bf4807b 100644 (file)
@@ -1564,7 +1564,9 @@ AC_ARG_WITH(ldns,
                        [AC_LANG_SOURCE([[
 #include <stdio.h>
 #include <stdlib.h>
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #include <ldns/ldns.h>
 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
                        ]])
@@ -3849,7 +3851,9 @@ fi
 
 AC_CHECK_TYPES([intmax_t, uintmax_t], , , [
 #include <sys/types.h>
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 ])
 
 TYPE_SOCKLEN_T