summaryrefslogtreecommitdiff
path: root/net/ORBit2/patches/patch-aa
blob: 7116bf3f2f8b45afcb0ed99d770a8e54f9ae3baf (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
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