From: Sebastian Harl Date: Thu, 2 Aug 2012 10:16:38 +0000 (+0200) Subject: configure, utils_dns: Check for and use netinet/ip_compat.h. X-Git-Tag: collectd-5.0.5~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b3e4116a7c512b8e5ac660850a0a2cc6979fe3c;p=collectd.git configure, utils_dns: Check for and use netinet/ip_compat.h. This is required on Solaris in order to get the ip6_ext struct. --- 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