dns: fix compilation on OpenBSD
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 16 Aug 2015 13:07:03 +0000 (15:07 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 26 Aug 2015 21:32:11 +0000 (23:32 +0200)
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.

configure.ac
src/dns.c

index ce23363..b6e3284 100644 (file)
@@ -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(
index 00fcff1..1fb7cb8 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -33,7 +33,6 @@
 #include <poll.h>
 
 #include <pcap.h>
-#include <pcap-bpf.h>
 
 /*
  * Private data types