summaryrefslogtreecommitdiff
path: root/net/ORBit2
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-05-22 17:41:31 +0000
committertron <tron@pkgsrc.org>2004-05-22 17:41:31 +0000
commitc425f19d92513b254dce7d7156ddab0661c825d2 (patch)
tree0563390dea7cebdf181a0955931ebaf5ee070e86 /net/ORBit2
parente558a9a7e3aa3be520687fa62c274f1470ef0fc7 (diff)
downloadpkgsrc-c425f19d92513b254dce7d7156ddab0661c825d2.tar.gz
Make this build and work under NetBSD 2.0E and above with the bind9
resolver library.
Diffstat (limited to 'net/ORBit2')
-rw-r--r--net/ORBit2/distinfo3
-rw-r--r--net/ORBit2/patches/patch-aa31
2 files changed, 33 insertions, 1 deletions
diff --git a/net/ORBit2/distinfo b/net/ORBit2/distinfo
index 3677a043f14..032d8eb65eb 100644
--- a/net/ORBit2/distinfo
+++ b/net/ORBit2/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.16 2004/05/09 16:30:24 jmmv Exp $
+$NetBSD: distinfo,v 1.17 2004/05/22 17:41:31 tron Exp $
SHA1 (ORBit2-2.10.2.tar.bz2) = af49875e0d932d33172a65b376befc933b9c742e
Size (ORBit2-2.10.2.tar.bz2) = 649720 bytes
+SHA1 (patch-aa) = fcaba312cd181e0c60c992a152b54d75c12f1390
diff --git a/net/ORBit2/patches/patch-aa b/net/ORBit2/patches/patch-aa
new file mode 100644
index 00000000000..7116bf3f2f8
--- /dev/null
+++ b/net/ORBit2/patches/patch-aa
@@ -0,0 +1,31 @@
+--- linc2/src/linc-protocols.c.orig 2004-02-02 17:29:05.000000000 +0100
++++ linc2/src/linc-protocols.c 2004-05-22 19:37:12.000000000 +0200
+@@ -21,6 +21,10 @@
+
+ static char *link_tmpdir = NULL;
+
++#if defined(__NetBSD__) && defined(__RES__) && (__RES >= 20030124)
++extern struct __res_state _res;
++#endif
++
+ /*
+ * make_local_tmpdir:
+ * @dirname: directory name.
+@@ -359,7 +363,7 @@
+ int i;
+
+ LINK_RESOLV_UNSET_IPV6;
+-#ifdef HAVE_RESOLV_H
++#if defined(HAVE_RESOLV_H)
+ if (!(_res.options & RES_INIT))
+ res_init();
+ #endif
+@@ -455,7 +459,7 @@
+ return (struct sockaddr *)saddr;
+ #else
+
+-#ifdef HAVE_RESOLV_H
++#if defined(HAVE_RESOLV_H)
+ if (!(_res.options & RES_INIT))
+ res_init();
+ #endif