- (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@.
This commit is contained in:
Darren Tucker 2006-05-15 17:15:56 +10:00
parent 43ff44e7db
commit 13c539a4dc
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
20050515
- (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@.
20050506
- (dtucker) OpenBSD CVS Syn
- dtucker@cvs.openbsd.org 2006/04/25 08:02:27
@ -4611,4 +4617,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.4324 2006/05/06 08:40:53 dtucker Exp $
$Id: ChangeLog,v 1.4325 2006/05/15 07:15:56 dtucker Exp $

View File

@ -60,6 +60,10 @@ extern int h_errno;
# undef _THREAD_PRIVATE
#endif
#define _THREAD_PRIVATE(a,b,c) (c)
/* to avoid conflicts where a platform already has _res */
#define _res _compat_res
struct __res_state _res;
/* Necessary functions and macros */