diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-04-29 05:58:06 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-04-29 05:58:06 +0200 |
commit | cc40d5ecdfe1bdb8f37cc385669e8b6e0b641fb2 (patch) | |
tree | 1e62165ac156b456cf84aec019f2e43b69d10812 /openbsd-compat/getrrsetbyname.c | |
parent | - (dtucker) [auth-shadow.c loginrec.c] Include time.h for time(2) prototype. (diff) | |
download | openssh-cc40d5ecdfe1bdb8f37cc385669e8b6e0b641fb2.tar.xz openssh-cc40d5ecdfe1bdb8f37cc385669e8b6e0b641fb2.zip |
- (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 '')
-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 07231d005..80af3f542 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 */ |