aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/ttt/Makefile4
-rw-r--r--net/ttt/files/patch-net_names.c21
-rw-r--r--net/ttt/files/patch-node.c20
3 files changed, 41 insertions, 4 deletions
diff --git a/net/ttt/Makefile b/net/ttt/Makefile
index 74ead9f2d9ae..27a96fdbef85 100644
--- a/net/ttt/Makefile
+++ b/net/ttt/Makefile
@@ -26,8 +26,4 @@ MAN1= ttt.1 tttprobe.1 tttview.1
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
.include <bsd.port.post.mk>
diff --git a/net/ttt/files/patch-net_names.c b/net/ttt/files/patch-net_names.c
new file mode 100644
index 000000000000..3221c40ea399
--- /dev/null
+++ b/net/ttt/files/patch-net_names.c
@@ -0,0 +1,21 @@
+--- net_names.c.orig 2004-08-14 14:32:15.000000000 +0200
++++ net_names.c 2007-10-02 00:07:03.000000000 +0200
+@@ -161,6 +161,9 @@
+ return NULL;
+ }
+
++static char *inet6_ntoa(uint32_t *addr); /* should be replaced by addr2ascii */
++
++
+ char *net_getname(long type, long *id)
+ {
+ char *buf, *name;
+@@ -261,8 +264,6 @@
+ case TTTTYPE_IPV6HOST:
+ {
+ u_int32_t tmp[4];
+- static char *inet6_ntoa(u_int32_t *addr); /* should be replaced
+- by addr2ascii */
+ if ((buf = malloc(sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")))
+ == NULL)
+ fatal_error("get_protoname: no memory\n");
diff --git a/net/ttt/files/patch-node.c b/net/ttt/files/patch-node.c
new file mode 100644
index 000000000000..e06d07bb7047
--- /dev/null
+++ b/net/ttt/files/patch-node.c
@@ -0,0 +1,20 @@
+--- node.c.orig 2004-05-19 12:20:44.000000000 +0200
++++ node.c 2007-10-02 00:27:29.000000000 +0200
+@@ -89,7 +89,7 @@
+ static int b_collectgarbage(int tab_no);
+ static int b_countfree(int tab_no);
+ static struct t_node *b_getfree(int tab_no);
+-static int fls(int i);
++int fls(int i);
+ #ifdef IPV6
+ static int node_comp_id(long *a, long *b);
+ #endif
+@@ -599,7 +599,7 @@
+ }
+
+ /* fls - find last set bit --- reverse function of vax ffs */
+-static int fls(int i)
++ int fls(int i)
+ {
+ int index;
+