summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dbbafde)
raw | patch | inline | side by side (parent: dbbafde)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 16 Aug 2015 13:07:03 +0000 (15:07 +0200) | ||
committer | Marc 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.
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 | patch | blob | history | |
src/dns.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index ce23363a8480dba617f137f01086a54f7897f497..b6e3284403543b4b7a2fb13171499cdea9ed84c7 100644 (file)
--- a/configure.ac
+++ b/configure.ac
[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],
diff --git a/src/dns.c b/src/dns.c
index 00fcff191e0ccf0177ec7bea309eb2964b331228..1fb7cb8ad7a877b40cb5fe40684c970786113146 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
#include <poll.h>
#include <pcap.h>
-#include <pcap-bpf.h>
/*
* Private data types