Hi Alexey,

You're listed as the maintainer for the FreeBSD net/trafshow port. The port doesn't compile on 8.0-CURRENT (r190457) amd64 at the moment. The recent import of the new pcap into FreeBSD 8 means pcap.h no longer includes the system's net/bpf.h, which has a required #define ioctl (BIOCIMMEDIATE). Placing the attached patch in the port's files directory fixes the issue for me. The patch should only be required for ${OSVERSION} >= 800074.

Rui, is patching the port the correct fix for this issue?

Cheers,
Lawrence
--- show_dump.c.orig    2009-03-28 10:33:29.000000000 +1100
+++ show_dump.c 2009-03-28 10:28:44.000000000 +1100
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
+#include <net/bpf.h>
 #include <pcap.h>
 #include <pthread.h>
 #include <time.h>
--- trafshow.c.orig     2009-03-28 10:33:50.000000000 +1100
+++ trafshow.c  2009-03-28 10:27:52.000000000 +1100
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <time.h>
+#include <net/bpf.h>
 #include <pcap.h>
 #include <pthread.h>
 #include <errno.h>
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to