diff options
author | miwi <miwi@FreeBSD.org> | 2007-10-02 06:41:18 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-10-02 06:41:18 +0800 |
commit | ab685cbc204a81cb5925103956486f5a25152411 (patch) | |
tree | 56502b11f1c8f8447ff9a63b907c9be8db3b3469 /net | |
parent | 0f78245a96e5757fff8decb695a3479b2dd857c7 (diff) | |
download | freebsd-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')
-rw-r--r-- | net/ttt/Makefile | 4 | ||||
-rw-r--r-- | net/ttt/files/patch-net_names.c | 21 | ||||
-rw-r--r-- | net/ttt/files/patch-node.c | 20 |
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; + |