diff options
author | des <des@FreeBSD.org> | 2007-07-30 11:06:42 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-07-30 11:06:42 +0000 |
commit | a969e2957be55a6de5c5d2a0466d00943b4f4c80 (patch) | |
tree | f9bf5e42e9c6d203db78a053255c80161fd541e3 /usr.bin | |
parent | 0511205d5e160e55d9266cc7536474a1fe202ebc (diff) | |
download | FreeBSD-src-a969e2957be55a6de5c5d2a0466d00943b4f4c80.zip FreeBSD-src-a969e2957be55a6de5c5d2a0466d00943b4f4c80.tar.gz |
Make tcpstates[] static, and make sure TCPSTATES is defined before
<netinet/tcp_fsm.h> is included into any compilation unit that needs
tcpstates[]. Also remove incorrect extern declarations and TCPDEBUG
conditionals. This allows kernels both with and without TCPDEBUG to
build, and unbreaks the tinderbox.
Approved by: re (rwatson)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/ipx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index dad5ae8..893dc75 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include <net/route.h> +#define TCPSTATES #include <netinet/tcp_fsm.h> #include <netipx/ipx.h> @@ -72,8 +73,6 @@ __FBSDID("$FreeBSD$"); static char *ipx_prpr (struct ipx_addr *); -extern char *tcpstates[]; - /* * Print a summary of connections related to a Network Systems * protocol. For SPX, also give state of connection. |