aboutsummaryrefslogtreecommitdiffstats
path: root/net/tcpdstat
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-14 21:16:28 +0800
committermiwi <miwi@FreeBSD.org>2006-12-14 21:16:28 +0800
commit58af33ce58e8d9617a8b1801c0905ed4edbc7f16 (patch)
tree6c5045b05e33d4dfd05f3f2018392dd857d3f064 /net/tcpdstat
parent708166c88e1f6156eed69ab2cdaaffcf94f2f8db (diff)
downloadfreebsd-ports-gnome-58af33ce58e8d9617a8b1801c0905ed4edbc7f16.tar.gz
freebsd-ports-gnome-58af33ce58e8d9617a8b1801c0905ed4edbc7f16.tar.zst
freebsd-ports-gnome-58af33ce58e8d9617a8b1801c0905ed4edbc7f16.zip
- Fix gcc 4.1 build
PR: ports/106693 Submitted by: richard@unixguru.nl (maintainer)
Diffstat (limited to 'net/tcpdstat')
-rw-r--r--net/tcpdstat/files/patch-net_read.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/tcpdstat/files/patch-net_read.c b/net/tcpdstat/files/patch-net_read.c
new file mode 100644
index 000000000000..ac1a2a67f34c
--- /dev/null
+++ b/net/tcpdstat/files/patch-net_read.c
@@ -0,0 +1,11 @@
+--- net_read.orig Wed Dec 13 23:11:59 2006
++++ net_read.c Wed Dec 13 23:12:17 2006
+@@ -137,7 +137,7 @@
+ pcap_t *pd;
+ int pcapfd;
+
+-static int packet_length; /* length of current packet */
++int packet_length; /* length of current packet */
+
+ #define STAT_ADD(name) \
+ { tcpdstat[(name)].packets++; tcpdstat[(name)].bytes += packet_length; }