From: Florian Forster Date: Fri, 7 Jan 2011 07:12:54 +0000 (+0100) Subject: dns plugin: Disable the plugin if is not available. X-Git-Tag: collectd-5.0.0~22 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=135fcb2fb72d7361e58cf1e3557181306aaf750b;p=collectd.git dns plugin: Disable the plugin if is not available. Apparently the AIX version of PCAP doesn't have this header file and is thus missing a required struct definition. --- diff --git a/configure.in b/configure.in index f6bb58b4..20a1640a 100644 --- a/configure.in +++ b/configure.in @@ -2765,7 +2765,8 @@ then fi if test "x$with_libpcap" = "xyes" then - AC_CHECK_HEADERS(pcap-bpf.h) + AC_CHECK_HEADERS(pcap-bpf.h,, + [with_libpcap="no (pcap-bpf.h not found)"]) fi AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes") # }}} diff --git a/src/dns.c b/src/dns.c index 09082fcf..95797f54 100644 --- a/src/dns.c +++ b/src/dns.c @@ -33,9 +33,7 @@ #include #include -#if HAVE_PCAP_BPF_H -# include -#endif +#include /* * Private data types