summaryrefslogtreecommitdiff
path: root/net/ttt/patches/patch-ad
blob: 9e382677c0d6b3bb4a4966024c5bfa344a451280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ad,v 1.1 2009/04/07 18:03:14 hasso Exp $

--- node.c.orig
+++ node.c
@@ -89,7 +89,9 @@ struct t_node *b_getnext(struct t_node *
 static int b_collectgarbage(int tab_no);
 static int b_countfree(int tab_no);
 static struct t_node *b_getfree(int tab_no);
+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
 static int fls(int i);
+#endif
 #ifdef IPV6
 static int node_comp_id(long *a, long *b);
 #endif
@@ -598,6 +600,7 @@ static struct t_node *b_getfree(int tab_
     return np;
 }
 
+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
 /* fls - find last set bit  --- reverse function of vax ffs */
 static int fls(int i)
 {
@@ -623,6 +626,7 @@ static int fls(int i)
     assert(0);
     return 0;
 }
+#endif
 
 static int node_comp_id(long *a, long *b)
 {