summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2b9672)
raw | patch | inline | side by side (parent: e2b9672)
author | Florian Forster <octo@huhu.verplant.org> | |
Fri, 7 Jan 2011 07:12:54 +0000 (08:12 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 7 Jan 2011 07:12:54 +0000 (08:12 +0100) |
Apparently the AIX version of PCAP doesn't have this header file and is
thus missing a required struct definition.
thus missing a required struct definition.
configure.in | patch | blob | history | |
src/dns.c | patch | blob | history |
diff --git a/configure.in b/configure.in
index f6bb58b4b029df2fa779fab4426b5f73170d63ac..20a1640a6e0b0d727a63a9563c939870a02cfafa 100644 (file)
--- a/configure.in
+++ b/configure.in
fi
if test "x$with_libpcap" = "xyes"
then
- AC_CHECK_HEADERS(pcap-bpf.h)
+ AC_CHECK_HEADERS(pcap-bpf.h,,
+ [with_libpcap="no (pcap-bpf.h not found)"])
fi
AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes")
# }}}
diff --git a/src/dns.c b/src/dns.c
index 09082fcf1ff5682a955b756a6c3831f767bb02da..95797f543ea67138e23c967645905354991e408e 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
#include <poll.h>
#include <pcap.h>
-#if HAVE_PCAP_BPF_H
-# include <pcap-bpf.h>
-#endif
+#include <pcap-bpf.h>
/*
* Private data types