$NetBSD: patch-as,v 1.3 2024/01/15 04:43:22 jnemeth Exp $ --- sendmail/deliver.c.orig 2023-02-22 16:41:28.000000000 +0000 +++ sendmail/deliver.c @@ -31,6 +31,10 @@ SM_RCSID("@(#)$Id: deliver.c,v 8.1030 20 # include "tls.h" #endif +#if NAMED_BIND +extern struct __res_state sm_res; +#endif + #if !_FFR_DMTRIGGER static int deliver __P((ENVELOPE *, ADDRESS *)); #endif @@ -2245,7 +2249,7 @@ deliver(e, firstto) #if NAMED_BIND if (ConfigLevel < 2) - _res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */ + sm_res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */ #endif if (tTd(11, 1)) @@ -4100,7 +4104,7 @@ do_transfer: } #if NAMED_BIND if (ConfigLevel < 2) - _res.options |= RES_DEFNAMES | RES_DNSRCH; /* XXX */ + sm_res.options |= RES_DEFNAMES | RES_DNSRCH; /* XXX */ #endif if (tTd(62, 1)) @@ -6618,7 +6622,7 @@ hostsignature(m, host, ad) char *hp; char *endp; char *lstr; - int oldoptions = _res.options; + int oldoptions = sm_res.options; char *mxhosts[MAXMXHOSTS + 1]; unsigned short mxprefs[MAXMXHOSTS + 1]; #endif /* NAMED_BIND */ @@ -6688,7 +6692,7 @@ hostsignature(m, host, ad) #if NAMED_BIND if (ConfigLevel < 2) - _res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */ + sm_res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */ for (hp = host; hp != NULL; hp = endp) { @@ -6821,7 +6825,7 @@ hostsignature(m, host, ad) lstr = makelower_a(&s->s_hostsig.hs_sig, NULL); ASSIGN_IFDIFF(s->s_hostsig.hs_sig, lstr); if (ConfigLevel < 2) - _res.options = oldoptions; + sm_res.options = oldoptions; #else /* NAMED_BIND */ /* not using BIND -- the signature is just the host name */ /*