summaryrefslogtreecommitdiff
path: root/net/tcptrace
diff options
context:
space:
mode:
authortron <tron>2003-01-12 21:07:44 +0000
committertron <tron>2003-01-12 21:07:44 +0000
commit88509562b322b40670cb8d05d3966b540037e621 (patch)
treeb36c911faebb8e773b19b7dec2c833750437e258 /net/tcptrace
parentb66ed432236b4ad4de3cbb8a6c23c76d66dd567d (diff)
downloadpkgsrc-88509562b322b40670cb8d05d3966b540037e621.tar.gz
Avoid build problem under NetBSD-current in a less aggressive (or more
portable) way. This fixes PR pkg/19821 by Wolfgang S. Rupprecht.
Diffstat (limited to 'net/tcptrace')
-rw-r--r--net/tcptrace/distinfo4
-rw-r--r--net/tcptrace/patches/patch-ab16
-rw-r--r--net/tcptrace/patches/patch-ac24
3 files changed, 43 insertions, 1 deletions
diff --git a/net/tcptrace/distinfo b/net/tcptrace/distinfo
index e0904f50c54..08ed25b6922 100644
--- a/net/tcptrace/distinfo
+++ b/net/tcptrace/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 11:23:36 wiz Exp $
+$NetBSD: distinfo,v 1.3 2003/01/12 21:07:44 tron Exp $
SHA1 (tcptrace.5.2.1.tar.gz) = 838f81a2f5537631c16af6ca49b69863f43d2bd3
Size (tcptrace.5.2.1.tar.gz) = 1178005 bytes
SHA1 (patch-aa) = b338e2dada6cb3b1fee66d8d28b909cc5e6858fc
+SHA1 (patch-ab) = 39483cb6be4bde804f62c5b437aaafa29af05fca
+SHA1 (patch-ac) = 5caa809ef1accda51ee1d5275f18181fc9beba1e
diff --git a/net/tcptrace/patches/patch-ab b/net/tcptrace/patches/patch-ab
new file mode 100644
index 00000000000..01fff35537a
--- /dev/null
+++ b/net/tcptrace/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.3 2003/01/12 21:07:45 tron Exp $
+
+--- tcptrace.h.orig Thu Aug 12 19:33:10 1999
++++ tcptrace.h Sun Jan 12 22:03:30 2003
+@@ -484,10 +484,7 @@
+
+
+ /* external routine decls */
+-double sqrt(double x);
+-char *ether_ntoa(struct ether_addr *e);
+-void free(void *);
+-int finite(double);
++char *my_ether_ntoa(struct ether_addr *e);
+
+
+ /* global routine decls */
diff --git a/net/tcptrace/patches/patch-ac b/net/tcptrace/patches/patch-ac
new file mode 100644
index 00000000000..67684572179
--- /dev/null
+++ b/net/tcptrace/patches/patch-ac
@@ -0,0 +1,24 @@
+$NetBSD: patch-ac,v 1.3 2003/01/12 21:07:45 tron Exp $
+
+--- print.c.orig Wed Sep 8 00:40:15 1999
++++ print.c Sun Jan 12 22:05:19 2003
+@@ -110,8 +110,8 @@
+ printeth_packet(
+ struct ether_header *pep)
+ {
+- printf("\tETH Srce: %s\n", ether_ntoa((struct ether_addr *)&pep->ether_shost));
+- printf("\tETH Dest: %s\n", ether_ntoa((struct ether_addr *)&pep->ether_dhost));
++ printf("\tETH Srce: %s\n", my_ether_ntoa((struct ether_addr *)&pep->ether_shost));
++ printf("\tETH Dest: %s\n", my_ether_ntoa((struct ether_addr *)&pep->ether_dhost));
+
+ printf(
+ hex?"\t Type: 0x%x %s\n":"\t Type: %d %s\n",
+@@ -708,7 +708,7 @@
+ /* and it messes up my cross-platform testing. I'll just do it the */
+ /* "one true" way! :-) */
+ char *
+-ether_ntoa (struct ether_addr *e)
++my_ether_ntoa (struct ether_addr *e)
+ {
+ unsigned char *pe;
+ static char buf[30];