Skip to content

Commit

Permalink
configure, utils_dns: Check for and use netinet/ip_compat.h.
Browse files Browse the repository at this point in the history
This is required on Solaris in order to get the ip6_ext struct.
  • Loading branch information
tokkee committed Aug 2, 2012
1 parent 3cc6836 commit 4b3e411
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.in
Expand Up @@ -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"])
Expand Down
6 changes: 6 additions & 0 deletions src/utils_dns.c
Expand Up @@ -45,6 +45,12 @@
#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
Expand Down

0 comments on commit 4b3e411

Please sign in to comment.