aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-07-25 08:41:35 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-07-25 08:41:35 +0000
commit29fbbf75dbe74812f96aaf317b5c14ba86d74b1a (patch)
treebe59c91cf8422691da0890eea88e09ca9d735d82
parenta5470db081e4647c962e36c2d6c1f46bb9c119b7 (diff)
Notes
-rw-r--r--net/packetdrill/files/patch-platforms.h18
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"