]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fix detection and use of netinet/ip6.h on FreeBSD
authorTobias Brunner <tobias@strongswan.org>
Wed, 27 Mar 2013 08:56:48 +0000 (09:56 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 27 Mar 2013 08:56:48 +0000 (09:56 +0100)
configure.in
src/libipsec/ip_packet.c

index d4c35bee16de0604faf6f225984e77847e0e5040..9dc510b2463c5dfa9ec6ce98e854c2ec1153cdab 100644 (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], [], [],
 [
index 5c8cc2e3ef540914e2d5953caedae47a6f6ba65a..d08e09057025ac380656d3629f071e60bfa17b4f 100644 (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