Fix IPv6 check on FreeBSD by including netinet/in.h
authorBruce Cran <bruce@cran.org.uk>
Thu, 13 Feb 2014 16:06:20 +0000 (09:06 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 13 Feb 2014 16:06:20 +0000 (09:06 -0700)
I noticed IPv6 support was being disabled on FreeBSD; it seems the
configure script needs netinet/in.h so in6_addr is known.

Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index 78a6ccb7e746aa2e272a68bccd96c8c821084034..89405cd790192127749470a82c839e0cc0ccd3d0 100755 (executable)
--- a/configure
+++ b/configure
@@ -1098,6 +1098,7 @@ ipv6="no"
 cat > $TMPC << EOF
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <netdb.h>
 #include <stdio.h>
 int main(int argc, char **argv)