summaryrefslogtreecommitdiff
path: root/mail/sendmail/patches/patch-aw
blob: 94e3f6a347424ee627d02e8b31ec215219000210 (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
32
$NetBSD: patch-aw,v 1.4 2014/12/06 23:22:20 jnemeth Exp $

--- sendmail/readcf.c.orig	2014-10-22 16:33:53.000000000 +0000
+++ sendmail/readcf.c
@@ -20,6 +20,10 @@ SM_RCSID("@(#)$Id: readcf.c,v 8.692 2013
 # include <arpa/inet.h>
 #endif /* NETINET || NETINET6 */
 
+#if NAMED_BIND
+extern struct __res_state sm_res;
+#endif
+
 
 #define SECONDS
 #define MINUTES	* 60
@@ -2999,13 +3003,13 @@ setoption(opt, val, safe, sticky, e)
 			if (rfp->rf_name == NULL)
 				syserr("readcf: I option value %s unrecognized", q);
 			else if (clearmode)
-				_res.options &= ~rfp->rf_bits;
+				sm_res.options &= ~rfp->rf_bits;
 			else
-				_res.options |= rfp->rf_bits;
+				sm_res.options |= rfp->rf_bits;
 		}
 		if (tTd(8, 2))
 			sm_dprintf("_res.options = %x, HasWildcardMX = %d\n",
-				   (unsigned int) _res.options, HasWildcardMX);
+				   (unsigned int) sm_res.options, HasWildcardMX);
 #else /* NAMED_BIND */
 		usrerr("name server (I option) specified but BIND not compiled in");
 #endif /* NAMED_BIND */