Fix detection and use of netinet/ip6.h on FreeBSD

This commit is contained in:
Tobias Brunner 2013-03-27 09:56:48 +01:00
parent 613fb0b494
commit ae8ac58c45
2 changed files with 6 additions and 1 deletions

View File

@ -471,7 +471,11 @@ AC_CHECK_FUNCS(prctl mallinfo getpass closefrom getpwnam_r getgrnam_r getpwuid_r
AC_CHECK_HEADERS(sys/sockio.h glob.h)
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)
AC_CHECK_HEADERS(netinet/ip6.h)
AC_CHECK_HEADERS(netinet/ip6.h, [], [],
[
#include <sys/types.h>
#include <netinet/in.h>
])
AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [],
[

View File

@ -19,6 +19,7 @@
#include <library.h>
#include <utils/debug.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#ifdef HAVE_NETINET_IP6_H