mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Include <sys/types.h> before <netinet/in.h> when checking vor IPv6.
This is for NetBSD 1.5. Thanks to Greg Troxel!
This commit is contained in:
parent
43a1d6f1e5
commit
8f16fe5a70
2 changed files with 11 additions and 2 deletions
1
THANKS
1
THANKS
|
@ -27,6 +27,7 @@ For fixes or providing information which led to a fix:
|
|||
David Pirotte
|
||||
Ken Raeburn
|
||||
Bill Schottstaedt
|
||||
Greg Troxel
|
||||
Momchil Velikov
|
||||
Panagiotis Vossos
|
||||
Keith Wright
|
||||
|
|
12
configure.in
12
configure.in
|
@ -392,7 +392,11 @@ fi
|
|||
|
||||
AC_MSG_CHECKING(for working IPv6 support)
|
||||
AC_CACHE_VAL(guile_cv_have_ipv6,
|
||||
[AC_TRY_COMPILE([#include <netinet/in.h>
|
||||
[AC_TRY_COMPILE([
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>],
|
||||
[struct sockaddr_in6 a; a.sin6_family = AF_INET6;],
|
||||
guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)])
|
||||
|
@ -404,7 +408,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 <netinet/in.h>],
|
||||
[AC_TRY_COMPILE([
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#include <netinet/in.h>],
|
||||
[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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue