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 bb26716..84a3040 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 cfa4a5c..cfd0ccf 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