1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

- Unbreak

- Fix build with gcc 4.2
This commit is contained in:
Martin Wilke 2007-10-01 22:41:18 +00:00
parent 26b1368f51
commit 5690e71d56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200564
3 changed files with 41 additions and 4 deletions

View File

@ -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>

View File

@ -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");

View File

@ -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;