From f5b909a46905cf6ea1311293b439af6d985caa00 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 16 Aug 2015 15:07:03 +0200 Subject: [PATCH] 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. --- configure.ac | 5 ----- src/dns.c | 1 - 2 files changed, 6 deletions(-) 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 -- 2.11.0