From: Ruben Kerkhof Date: Sun, 16 Aug 2015 13:07:03 +0000 (+0200) Subject: dns: fix compilation on OpenBSD X-Git-Tag: collectd-5.5.1~52^2~15 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=f5b909a46905cf6ea1311293b439af6d985caa00;p=collectd.git dns: fix compilation on OpenBSD OpenBSD doesn't have pcap-bpf.h pcap.h has been including pcap/bpf.h since 2006. Since we require a pcap which has PCAP_ERROR_IFACE_NOT_UP, introduced in 2008 this shouldn't break anything. --- diff --git a/configure.ac b/configure.ac index ce23363a..b6e32844 100644 --- a/configure.ac +++ b/configure.ac @@ -3132,11 +3132,6 @@ then fi if test "x$with_libpcap" = "xyes" then - AC_CHECK_HEADERS(pcap-bpf.h,, - [with_libpcap="no (pcap-bpf.h not found)"]) -fi -if test "x$with_libpcap" = "xyes" -then AC_CACHE_CHECK([whether libpcap has PCAP_ERROR_IFACE_NOT_UP], [c_cv_libpcap_have_pcap_error_iface_not_up], AC_COMPILE_IFELSE([AC_LANG_PROGRAM( diff --git a/src/dns.c b/src/dns.c index 00fcff19..1fb7cb8a 100644 --- a/src/dns.c +++ b/src/dns.c @@ -33,7 +33,6 @@ #include #include -#include /* * Private data types