diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-04-29 13:58:06 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-04-29 13:58:06 +1000 |
commit | cc40d5ecdfe1bdb8f37cc385669e8b6e0b641fb2 (patch) | |
tree | 1e62165ac156b456cf84aec019f2e43b69d10812 /openbsd-compat/getrrsetbyname.c | |
parent | d757e69cdae6bbb8c5626ff25f8f2fc151ebc98f (diff) |
- (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1299: Use the
platform's _res if it has one. Should fix problem of DNSSEC record lookups
on NetBSD as reported by Curt Sampson.
Diffstat (limited to 'openbsd-compat/getrrsetbyname.c')
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 07231d00..80af3f54 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c @@ -67,13 +67,9 @@ extern int h_errno; #endif #define _THREAD_PRIVATE(a,b,c) (c) -/* to avoid conflicts where a platform already has _res */ -#ifdef _res -# undef _res -#endif -#define _res _compat_res - +#ifndef HAVE__RES_EXTERN struct __res_state _res; +#endif /* Necessary functions and macros */ |