summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-06-30 11:47:49 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-06-30 11:47:49 +1000
commit7243f9db6034bc9fac9d9b88217cc465b3ded3ca (patch)
treef2765bb70b1ac318ccb19e0b1c22d7dd96c554d5
parent66c32d5caa533560a16638ab688772833e602d28 (diff)
- (dtucker) [openbsd-compat/getrrsetbyname.c] Undef _res before defining it,
prevents warnings on platforms where _res is in the system headers.
-rw-r--r--ChangeLog4
-rw-r--r--openbsd-compat/getrrsetbyname.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 09c459200..9dad80a70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
120060630 120060630
2 - (dtucker) [openbsd-compat/openbsd-compat.h] SNPRINTF_CONST for snprintf 2 - (dtucker) [openbsd-compat/openbsd-compat.h] SNPRINTF_CONST for snprintf
3 declaration too. Patch from russ at sludge.net. 3 declaration too. Patch from russ at sludge.net.
4 - (dtucker) [openbsd-compat/getrrsetbyname.c] Undef _res before defining it,
5 prevents warnings on platforms where _res is in the system headers.
4 6
520060627 720060627
6 - (dtucker) [configure.ac] Bug #1203: Add missing '[', which causes problems 8 - (dtucker) [configure.ac] Bug #1203: Add missing '[', which causes problems
@@ -4716,4 +4718,4 @@
4716 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4718 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4717 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4719 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4718 4720
4719$Id: ChangeLog,v 1.4351 2006/06/30 00:51:32 dtucker Exp $ 4721$Id: ChangeLog,v 1.4352 2006/06/30 01:47:49 dtucker Exp $
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index 8dc744703..a855ad6d5 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -62,6 +62,9 @@ extern int h_errno;
62#define _THREAD_PRIVATE(a,b,c) (c) 62#define _THREAD_PRIVATE(a,b,c) (c)
63 63
64/* to avoid conflicts where a platform already has _res */ 64/* to avoid conflicts where a platform already has _res */
65#ifdef _res
66# undef _res
67#endif
65#define _res _compat_res 68#define _res _compat_res
66 69
67struct __res_state _res; 70struct __res_state _res;