aboutsummaryrefslogtreecommitdiffstats
path: root/net/ttt/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-10-02 06:41:18 +0800
committermiwi <miwi@FreeBSD.org>2007-10-02 06:41:18 +0800
commitab685cbc204a81cb5925103956486f5a25152411 (patch)
tree56502b11f1c8f8447ff9a63b907c9be8db3b3469 /net/ttt/files
parent0f78245a96e5757fff8decb695a3479b2dd857c7 (diff)
downloadfreebsd-ports-gnome-ab685cbc204a81cb5925103956486f5a25152411.tar.gz
freebsd-ports-gnome-ab685cbc204a81cb5925103956486f5a25152411.tar.zst
freebsd-ports-gnome-ab685cbc204a81cb5925103956486f5a25152411.zip
- Unbreak
- Fix build with gcc 4.2
Diffstat (limited to 'net/ttt/files')
-rw-r--r--net/ttt/files/patch-net_names.c21
-rw-r--r--net/ttt/files/patch-node.c20
2 files changed, 41 insertions, 0 deletions
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;
+