Code

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 ce23363a8480dba617f137f01086a54f7897f497..b6e3284403543b4b7a2fb13171499cdea9ed84c7 100644 (file)
@@ -3131,11 +3131,6 @@ then
                         [with_libpcap="no (pcap.h not found)"])
 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],
index 00fcff191e0ccf0177ec7bea309eb2964b331228..1fb7cb8ad7a877b40cb5fe40684c970786113146 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