From 4ea016761ad4502819b2271d54b52ec98c7325af Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Mon, 6 May 2002 19:11:00 +0000 Subject: [PATCH] Include before when checking vor IPv6. This is for NetBSD 1.5. Thanks to Greg Troxel! --- configure.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 09033fc7a..5913e3c53 100644 --- a/configure.in +++ b/configure.in @@ -349,7 +349,11 @@ fi AC_MSG_CHECKING(for working IPv6 support) AC_CACHE_VAL(guile_cv_have_ipv6, -[AC_TRY_COMPILE([#include +[AC_TRY_COMPILE([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#include #include ], [struct sockaddr_in6 a; a.sin6_family = AF_INET6;], guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)]) @@ -361,7 +365,11 @@ fi # included in rfc2553 but not in older implementations, e.g., glibc 2.1.3. AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id) AC_CACHE_VAL(guile_cv_have_sin6_scope_id, -[AC_TRY_COMPILE([#include ], +[AC_TRY_COMPILE([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#include ], [struct sockaddr_in6 sok; sok.sin6_scope_id = 0;], guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)]) AC_MSG_RESULT($guile_cv_have_sin6_scope_id)