projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc6836
)
configure, utils_dns: Check for and use netinet/ip_compat.h.
author
Sebastian Harl
<sh@teamix.net>
Thu, 2 Aug 2012 10:16:38 +0000
(12:16 +0200)
committer
Sebastian 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
patch
|
blob
|
history
src/utils_dns.c
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
bb26716
..
84a3040
100644
(file)
--- 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
cfa4a5c
..
cfd0ccf
100644
(file)
--- a/
src/utils_dns.c
+++ b/
src/utils_dns.c
@@
-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