summaryrefslogtreecommitdiff
path: root/net/ORBit2/patches
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/patches
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/patches')
-rw-r--r--net/ORBit2/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
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