From: Florian Forster Date: Sat, 23 Jun 2007 07:02:13 +0000 (+0200) Subject: dns plugin: Check for `net/ppp_defs.h' and include it before `net/if_ppp.h' if it... X-Git-Tag: collectd-4.0.4~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e40574f34ddd759275de29bb67e25a8c6a433506;p=collectd.git dns plugin: Check for `net/ppp_defs.h' and include it before `net/if_ppp.h' if it exists. This hopefully solves build problems under OpenBSD. --- diff --git a/configure.in b/configure.in index 1b158ec7..b3e591d8 100644 --- a/configure.in +++ b/configure.in @@ -332,7 +332,12 @@ AC_CHECK_HEADERS(net/if_arp.h, [], [], # include #endif ]) -AC_CHECK_HEADERS(net/if_ppp.h) +AC_CHECK_HEADERS(net/ppp_defs.h) +AC_CHECK_HEADERS(net/if_ppp.h, [], [], +[#if HAVE_NET_PPP_DEFS_H +# include +#endif +]) AC_CHECK_HEADERS(netinet/if_ether.h, [], [], [#if HAVE_STDINT_H # include diff --git a/src/utils_dns.c b/src/utils_dns.c index 09437275..5834fa13 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -63,6 +63,9 @@ #if HAVE_NETINET_IF_ETHER_H # include #endif +#if HAVE_NET_PPP_DEFS_H +# include +#endif #if HAVE_NET_IF_PPP_H # include #endif