]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: check for netinet/in6.h
authorRandall S. Becker <rsbecker@nexbridge.com>
Tue, 5 Dec 2017 16:41:27 +0000 (10:41 -0600)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Dec 2017 23:19:09 +0000 (00:19 +0100)
Needed by HPE NonStop NSE and NSX systems

Fixes #2146
Closes #2155

configure.ac
lib/curl_addrinfo.c
lib/hostcheck.c
lib/hostip.c
lib/urldata.h

index 001cf2cede1c68f55c2e64c80fa867faf0b3d23a..0433a7ccd9dcbb1a4d08723bc40d1bc32adb90b7 100755 (executable)
@@ -1206,6 +1206,9 @@ if test "$ipv6" = yes; then
 #include <ws2tcpip.h>
 #else
 #include <netinet/in.h>
+#if defined (__TANDEM)
+# include <netinet/in6.h>
+#endif
 #endif] ,
   struct sockaddr_in6 s; s.sin6_scope_id = 0; , have_sin6_scope_id=yes)
   if test "$have_sin6_scope_id" = yes; then
@@ -3354,6 +3357,7 @@ AC_CHECK_HEADERS(
         arpa/inet.h \
         net/if.h \
         netinet/in.h \
+       netinet/in6.h \
         sys/un.h \
         linux/tcp.h \
         netinet/tcp.h \
@@ -3404,6 +3408,9 @@ dnl default includes
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
 #ifdef HAVE_SYS_UN_H
 #include <sys/un.h>
 #endif
index 6eb28bbcb6c77f9db52198334f52f954ea7ffe4b..ec76f754054d3c6221c6a87e9ecca884a6b99fe1 100644 (file)
@@ -27,6 +27,9 @@
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif
+#ifdef HAVE_NETINET_IN6_H
+#  include <netinet/in6.h>
+#endif
 #ifdef HAVE_NETDB_H
 #  include <netdb.h>
 #endif
index 23dc3d2a7ce8a6b426f0ecb62d67351a87d858be..37bcc12c1b601083fd2562876fdde3334b808ae9 100644 (file)
@@ -31,6 +31,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
 
 #include "hostcheck.h"
 #include "strcase.h"
index 7f010a03791eb8915e85c3bb619075b049a5390f..ee2d4d2b560648f049c2c3450a260cecc4d69f91 100644 (file)
@@ -25,6 +25,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
index 19cb6cafd1acd6e814d0b94b09a9d303ba619f35..3152a11d92fab49ea26391e6d7cc122f06460286 100644 (file)
@@ -85,6 +85,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
 
 #include "timeval.h"