summaryrefslogtreecommitdiff
path: root/net/ttt
diff options
context:
space:
mode:
authorhasso <hasso>2009-04-07 17:58:19 +0000
committerhasso <hasso>2009-04-07 17:58:19 +0000
commit3ae076eb1901c3d46422ea2944999a7fe6966b75 (patch)
treea2b12e289a4a0795b2b1f4f8a9216b6f02a0f0e4 /net/ttt
parenta3658d20fb53116e45fe791668a58160effaed32 (diff)
downloadpkgsrc-3ae076eb1901c3d46422ea2944999a7fe6966b75.tar.gz
Make it build on FreeBSD and DragonFly.
Diffstat (limited to 'net/ttt')
-rw-r--r--net/ttt/distinfo3
-rw-r--r--net/ttt/patches/patch-ad30
2 files changed, 32 insertions, 1 deletions
diff --git a/net/ttt/distinfo b/net/ttt/distinfo
index 3db381a8a1d..001a05a9883 100644
--- a/net/ttt/distinfo
+++ b/net/ttt/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2007/09/07 13:53:44 obache Exp $
+$NetBSD: distinfo,v 1.9 2009/04/07 18:03:14 hasso Exp $
SHA1 (ttt-1.8.2.tar.gz) = 8b52a1e90de17202c22f062f44025b7ae0e21454
RMD160 (ttt-1.8.2.tar.gz) = 8f1877904087d9260e61e76f869196111de585c0
@@ -6,3 +6,4 @@ Size (ttt-1.8.2.tar.gz) = 138877 bytes
SHA1 (patch-aa) = 6d119e544ef3ae578b70c5d13a032f2a1529dde5
SHA1 (patch-ab) = 4ced63fabf7c4d7360fc3f1a249fb08256b1a745
SHA1 (patch-ac) = f513d90f7c8ef2389aa868d76795a82c91052e86
+SHA1 (patch-ad) = 40ad417dfb240240468513258132bcc64f510273
diff --git a/net/ttt/patches/patch-ad b/net/ttt/patches/patch-ad
new file mode 100644
index 00000000000..9e382677c0d
--- /dev/null
+++ b/net/ttt/patches/patch-ad
@@ -0,0 +1,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)
+ {