From 135fcb2fb72d7361e58cf1e3557181306aaf750b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 7 Jan 2011 08:12:54 +0100 Subject: [PATCH] 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. --- configure.in | 3 ++- src/dns.c | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 -- 2.11.0