diff options
author | daichi <daichi@FreeBSD.org> | 2003-07-23 13:37:49 +0800 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2003-07-23 13:37:49 +0800 |
commit | 9749fbb3cc045229a3435a7de350e1777b23ab78 (patch) | |
tree | 5d7771de5b17ed415f207b35eeee573a9df43294 /net | |
parent | 05a9cbaf71c71be3b8473f6911769432255a8521 (diff) | |
download | freebsd-ports-gnome-9749fbb3cc045229a3435a7de350e1777b23ab78.tar.gz freebsd-ports-gnome-9749fbb3cc045229a3435a7de350e1777b23ab78.tar.zst freebsd-ports-gnome-9749fbb3cc045229a3435a7de350e1777b23ab78.zip |
fix net/tcpview: Chase AF_{NS/NETBIOS} (bento)
PR: 52124
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/tcpview/Makefile | 4 | ||||
-rw-r--r-- | net/tcpview/files/patch-print_null.c | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/net/tcpview/Makefile b/net/tcpview/Makefile index 804bb8985872..884349416d16 100644 --- a/net/tcpview/Makefile +++ b/net/tcpview/Makefile @@ -22,10 +22,6 @@ MAN1= tcpview.1 .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile" -.endif - post-patch: .for f in nametoaddr.c addrtoname.c print-nfs.c detail-tcp.c tv_addrtoname.c @${REINPLACE_CMD} -e 's/NTOHL/ntohl/ ; s/NTOHS/ntohs/' ${WRKSRC}/${f} diff --git a/net/tcpview/files/patch-print_null.c b/net/tcpview/files/patch-print_null.c new file mode 100644 index 000000000000..e9d2943a3750 --- /dev/null +++ b/net/tcpview/files/patch-print_null.c @@ -0,0 +1,20 @@ +--- print-null.c.orig Mon May 12 17:35:00 2003 ++++ print-null.c Mon May 12 17:36:30 2003 +@@ -76,9 +76,17 @@ + printf("ip: "); + break; + ++#ifdef AF_NS + case AF_NS: + printf("ns: "); + break; ++#endif /* AF_NS */ ++#ifdef AF_NETBIOS ++ case AF_NETBIOS: ++ printf("netbios: "); ++ break; ++#endif /* AF_NETBIOS */ ++ + + default: + printf("AF %d: ", family); |