on 06/02/2012 14:36 Andriy Gapon said the following: > > This seems to still be an issue.
This is still an issue. > on 29/01/2012 13:26 Andriy Gapon said the following: >> >> At least on FreeBSD 10 with gcc 4.6 as a ports compiler I need the following >> patch to compile net/vde2: >> --- src/vde_pcapplug.c.orig 2012-01-29 13:06:10.495087022 +0200 >> +++ src/vde_pcapplug.c 2012-01-29 13:11:03.344097090 +0200 >> @@ -32,7 +32,6 @@ >> #include <libgen.h> >> #define _GNU_SOURCE >> #include <getopt.h> >> -#include <pcap.h> >> #include <limits.h> >> >> #include <config.h> >> @@ -41,8 +40,9 @@ >> #include <libvdeplug.h> >> >> #ifdef VDE_FREEBSD >> -#include <sys/socket.h> >> +#include <net/bpf.h> >> #endif >> +#include <pcap.h> >> >> #if defined(VDE_DARWIN) || defined(VDE_FREEBSD) >> # if defined HAVE_SYSLIMITS_H >> >> >> Explanation: >> - without including net/bpf.h I get compiler errors for BIOCSHDRCMPLT, >> BIOCIMMEDIATE and BIOCFEEDBACK >> - we don't need sys/socket.h under VDE_FREEBSD, because it is already >> included >> unconditionally earlier in the file >> - pcap.h inclusion has to be after net/bpf.h, because otherwise pcap/bpf.h >> redefines some definitions from net/bpf.h >> >> P.S. my pcap.h comes from libpcap-1.2.1 > > -- Andriy Gapon _______________________________________________ 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"