diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-05-15 17:15:56 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-05-15 17:15:56 +1000 |
commit | 13c539a4dcfa7a7fb34bbd43478aa913e27b8ba6 (patch) | |
tree | e780ff2f1be36a485f2f4879fea0d2ca70b589c3 /openbsd-compat | |
parent | 43ff44e7dbe28d913506df2673550e91b8003ca6 (diff) |
- (dtucker) [openbsd-compat/getrrsetbyname.c] Use _compat_res instead of
_res, prevents problems on some platforms that have _res as a global but
don't have getrrsetbyname(), eg IRIX 5.3. Found and tested by
georg.schwarz at freenet.de, ok djm@.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index bea6aea3b..8dc744703 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c | |||
@@ -60,6 +60,10 @@ extern int h_errno; | |||
60 | # undef _THREAD_PRIVATE | 60 | # undef _THREAD_PRIVATE |
61 | #endif | 61 | #endif |
62 | #define _THREAD_PRIVATE(a,b,c) (c) | 62 | #define _THREAD_PRIVATE(a,b,c) (c) |
63 | |||
64 | /* to avoid conflicts where a platform already has _res */ | ||
65 | #define _res _compat_res | ||
66 | |||
63 | struct __res_state _res; | 67 | struct __res_state _res; |
64 | 68 | ||
65 | /* Necessary functions and macros */ | 69 | /* Necessary functions and macros */ |