diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 4 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20050515 | ||
2 | - (dtucker) [openbsd-compat/getrrsetbyname.c] Use _compat_res instead of | ||
3 | _res, prevents problems on some platforms that have _res as a global but | ||
4 | don't have getrrsetbyname(), eg IRIX 5.3. Found and tested by | ||
5 | georg.schwarz at freenet.de, ok djm@. | ||
6 | |||
1 | 20050506 | 7 | 20050506 |
2 | - (dtucker) OpenBSD CVS Syn | 8 | - (dtucker) OpenBSD CVS Syn |
3 | - dtucker@cvs.openbsd.org 2006/04/25 08:02:27 | 9 | - dtucker@cvs.openbsd.org 2006/04/25 08:02:27 |
@@ -4611,4 +4617,4 @@ | |||
4611 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 4617 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
4612 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 4618 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
4613 | 4619 | ||
4614 | $Id: ChangeLog,v 1.4324 2006/05/06 08:40:53 dtucker Exp $ | 4620 | $Id: ChangeLog,v 1.4325 2006/05/15 07:15:56 dtucker Exp $ |
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 */ |