From 4b3e4116a7c512b8e5ac660850a0a2cc6979fe3c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 2 Aug 2012 12:16:38 +0200 Subject: [PATCH] configure, utils_dns: Check for and use netinet/ip_compat.h. This is required on Solaris in order to get the ip6_ext struct. --- configure.in | 2 ++ src/utils_dns.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/configure.in b/configure.in index bb26716d..84a30408 100644 --- a/configure.in +++ b/configure.in @@ -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"]) diff --git a/src/utils_dns.c b/src/utils_dns.c index cfa4a5cb..cfd0ccfc 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -45,6 +45,12 @@ #if HAVE_NETINET_IN_H # include #endif +#if HAVE_NETINET_IP6_H +# include +#endif +#if HAVE_NETINET_IP_COMPAT_H +# include +#endif #if HAVE_ARPA_INET_H # include #endif -- 2.11.0