Re: Bug#619684: Bug #619684: ns2: FTBFS on kfreebsd-*: emulate/net-pcap.cc:537:19: error: 'BIOCIMMEDIATE' was not declared in this scope
Hi,
I don't think this is a bug in libpcap; if your program uses
BIOCIMMEDIATE then it needs to include <net/bpf.h> itself and not
expect pcap's includes to do it.
FWIW, with the following patch ns2 builds successfully for me on
kfreebsd-amd64:
Index: ns2-2.35~RC6/emulate/net-pcap.cc
===================================================================
--- ns2-2.35~RC6.orig/emulate/net-pcap.cc 2011-04-16 11:21:52.000000000 +0200
+++ ns2-2.35~RC6/emulate/net-pcap.cc 2011-04-16 11:26:17.000000000 +0200
@@ -55,6 +55,10 @@
#include <sys/systeminfo.h>
#endif
+#if !defined(__linux__)&&!defined(__APPLE__)
+#include <net/bpf.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#include <pcap.h>
--
Romain Francoise <rfrancoise@debian.org>
http://people.debian.org/~rfrancoise/
Reply to: