From 748f28b5fa9ed261380f08bb4012f82aa5ee5b69 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 14 Dec 2006 13:16:28 +0000 Subject: [PATCH] - Fix gcc 4.1 build PR: ports/106693 Submitted by: richard@unixguru.nl (maintainer) --- net/tcpdstat/files/patch-net_read.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/tcpdstat/files/patch-net_read.c 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; }