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 | |
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')
-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; | |||
67 | #endif | 67 | #endif |
68 | #define _THREAD_PRIVATE(a,b,c) (c) | 68 | #define _THREAD_PRIVATE(a,b,c) (c) |
69 | 69 | ||
70 | /* to avoid conflicts where a platform already has _res */ | 70 | #ifndef HAVE__RES_EXTERN |
71 | #ifdef _res | ||
72 | # undef _res | ||
73 | #endif | ||
74 | #define _res _compat_res | ||
75 | |||
76 | struct __res_state _res; | 71 | struct __res_state _res; |
72 | #endif | ||
77 | 73 | ||
78 | /* Necessary functions and macros */ | 74 | /* Necessary functions and macros */ |
79 | 75 | ||