aboutsummaryrefslogtreecommitdiff
path: root/net/tcpxtract
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-02-04 16:42:14 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-02-04 16:42:14 +0000
commitbbca3395dac214ce111add5d82e5bf8de4921d29 (patch)
tree753daed203ecca5d60ee70e7a2968297e7ca3f03 /net/tcpxtract
parentcebd576fd6d4a773b9e94ac6d69dbc5f9d2c8e10 (diff)
downloadports-bbca3395dac214ce111add5d82e5bf8de4921d29.tar.gz
ports-bbca3395dac214ce111add5d82e5bf8de4921d29.zip
Notes
Diffstat (limited to 'net/tcpxtract')
-rw-r--r--net/tcpxtract/Makefile9
-rw-r--r--net/tcpxtract/files/extra-patch-sessionlist.c17
-rw-r--r--net/tcpxtract/files/extra-patch-tcpxtract.c11
3 files changed, 36 insertions, 1 deletions
diff --git a/net/tcpxtract/Makefile b/net/tcpxtract/Makefile
index bf9f76985e0f..2bd13fcc3c1b 100644
--- a/net/tcpxtract/Makefile
+++ b/net/tcpxtract/Makefile
@@ -20,4 +20,11 @@ MAN1= tcpxtract.1
PLIST_FILES= bin/tcpxtract etc/tcpxtract.conf
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tcpxtract.c ${PATCHDIR}/extra-patch-sessionlist.c
+.endif
+
+.include <bsd.port.post.mk>
+
diff --git a/net/tcpxtract/files/extra-patch-sessionlist.c b/net/tcpxtract/files/extra-patch-sessionlist.c
new file mode 100644
index 000000000000..f8ac06f895fd
--- /dev/null
+++ b/net/tcpxtract/files/extra-patch-sessionlist.c
@@ -0,0 +1,17 @@
+--- sessionlist.c.orig Sun Feb 5 00:00:42 2006
++++ sessionlist.c Sun Feb 5 00:01:48 2006
+@@ -21,13 +21,13 @@
+ */
+
+ #include <inttypes.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <net/if.h>
+ #include <netinet/if_ether.h>
+ #include <netinet/tcp.h>
+-#include <sys/types.h>
+ #include <sys/stat.h>
+ #include <time.h>
+ #include <string.h>
diff --git a/net/tcpxtract/files/extra-patch-tcpxtract.c b/net/tcpxtract/files/extra-patch-tcpxtract.c
new file mode 100644
index 000000000000..0ac5e7c213e3
--- /dev/null
+++ b/net/tcpxtract/files/extra-patch-tcpxtract.c
@@ -0,0 +1,11 @@
+--- tcpxtract.c.orig Sat Feb 4 23:57:57 2006
++++ tcpxtract.c Sat Feb 4 23:58:07 2006
+@@ -68,7 +68,7 @@
+
+ slist_t *sessions;
+
+-static uintmax_t num_packets; /* the running total of packets */
++static uint64_t num_packets; /* the running total of packets */
+
+ enum protos {
+ TCP_PROTO = 6,