diff options
author | tron <tron@pkgsrc.org> | 2004-05-22 17:41:31 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-05-22 17:41:31 +0000 |
commit | c425f19d92513b254dce7d7156ddab0661c825d2 (patch) | |
tree | 0563390dea7cebdf181a0955931ebaf5ee070e86 /net/ORBit2/patches | |
parent | e558a9a7e3aa3be520687fa62c274f1470ef0fc7 (diff) | |
download | pkgsrc-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-aa | 31 |
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 |