diff options
author | hrs <hrs@FreeBSD.org> | 2013-07-25 16:41:35 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2013-07-25 16:41:35 +0800 |
commit | 0f57fb08767415cf5d2e7cb1f304399a9de4fd90 (patch) | |
tree | be59c91cf8422691da0890eea88e09ca9d735d82 /net | |
parent | 529b567f8e851b3d1042155be4cb8e48f5abb07f (diff) | |
download | freebsd-ports-gnome-0f57fb08767415cf5d2e7cb1f304399a9de4fd90.tar.gz freebsd-ports-gnome-0f57fb08767415cf5d2e7cb1f304399a9de4fd90.tar.zst freebsd-ports-gnome-0f57fb08767415cf5d2e7cb1f304399a9de4fd90.zip |
Add a patch to fix gcc build on head.
Obtained from: murray
Diffstat (limited to 'net')
-rw-r--r-- | net/packetdrill/files/patch-platforms.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/packetdrill/files/patch-platforms.h b/net/packetdrill/files/patch-platforms.h new file mode 100644 index 000000000000..e924d68d8b25 --- /dev/null +++ b/net/packetdrill/files/patch-platforms.h @@ -0,0 +1,18 @@ +--- platforms.h.orig 2013-07-24 19:55:39.000000000 +0900 ++++ platforms.h 2013-07-24 19:56:36.000000000 +0900 +@@ -43,11 +43,15 @@ + + #if defined(__FreeBSD__) + ++#include <sys/param.h> + #define USE_LIBPCAP 1 + #define TUN_PATH "/dev/tun0" + #define TUN_DEV "tun0" + + #define HAVE_TCP_INFO 1 ++#if __FreeBSD_version > 1000028 ++#define HAVE_FMEMOPEN 1 ++#endif + + #include "open_memstream.h" + #include "fmemopen.h" |