Code

configure, utils_dns: Check for and use netinet/ip_compat.h.
authorSebastian Harl <sh@teamix.net>
Thu, 2 Aug 2012 10:16:38 +0000 (12:16 +0200)
committerSebastian Harl <sh@teamix.net>
Thu, 2 Aug 2012 11:55:51 +0000 (13:55 +0200)
This is required on Solaris in order to get the ip6_ext struct.

configure.in
src/utils_dns.c

index bb26716d7cc5d4f97362d906229ea09477a7f992..84a3040892fe6ef1950761109b07a2f8d4c2994c 100644 (file)
@@ -490,6 +490,8 @@ AC_CHECK_HEADERS(netinet/if_ether.h, [], [],
 #endif
 ])
 
+AC_CHECK_HEADERS(netinet/ip_compat.h)
+
 # For the multimeter plugin
 have_termios_h="no"
 AC_CHECK_HEADERS(termios.h, [have_termios_h="yes"])
index cfa4a5cbefff989c28e4a46accb89e00f1a93f59..cfd0ccfc75be7fc202ea93defbbf9b9cae19158a 100644 (file)
 #if HAVE_NETINET_IN_H
 # include <netinet/in.h>
 #endif
+#if HAVE_NETINET_IP6_H
+# include <netinet/ip6.h>
+#endif
+#if HAVE_NETINET_IP_COMPAT_H
+# include <netinet/ip_compat.h>
+#endif
 #if HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif