Skip to contentSkip to conversation

Fix IPv6 check on FreeBSD by including netinet/in.h

PATCH In review Bruce Cran 2 participants 2 messages Feb 13, 2014

lore
Share & tools
lore

Bruce Cran

author
#0 lore raw

PATCH 1/1 Fix IPv6 check on FreeBSD by including netinet/in.h

I noticed IPv6 support was being disabled on FreeBSD; it seems the configure script needs netinet/in.h so in6_addr is known.

Signature · 10 lines
Bruce

From 21fc22b5f510d8dc93a9b200f3787a7aa6638d35 Mon Sep 17 00:00:00 2001
From: Bruce Cran <[email protected]>
Date: Thu, 13 Feb 2014 04:53:36 +0000
Subject: [PATCH] According to POSIX, in6_addr requires netinet/in.h

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 78a6ccb..89405cd 100755
@@ -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)

--
1.8.4.3

#1 lore raw
Quoted 2 lines · Bruce Cran

I noticed IPv6 support was being disabled on FreeBSD; it seems the configure script needs netinet/in.h so in6_addr is known.

Thanks Bruce, applied.

Signature · 1 line
Jens Axboe