From 638a45b5c1e20a8539100ca44166caad8abf26f8 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 26 Jan 2020 13:40:51 +1100 Subject: Wrap stdint.h in tests inside HAVE_STDINT_H. --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 34cd94a7..b689db4b 100644 --- a/configure.ac +++ b/configure.ac @@ -1564,7 +1564,9 @@ AC_ARG_WITH(ldns, [AC_LANG_SOURCE([[ #include #include -#include +#ifdef HAVE_STDINT_H +# include +#endif #include 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 -#include +#ifdef HAVE_STDINT_H +# include +#endif ]) TYPE_SOCKLEN_T -- cgit v1.2.3