diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-06-30 11:47:49 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-06-30 11:47:49 +1000 |
commit | 7243f9db6034bc9fac9d9b88217cc465b3ded3ca (patch) | |
tree | f2765bb70b1ac318ccb19e0b1c22d7dd96c554d5 | |
parent | 66c32d5caa533560a16638ab688772833e602d28 (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-- | ChangeLog | 4 | ||||
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,8 @@ | |||
1 | 20060630 | 1 | 20060630 |
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 | ||
5 | 20060627 | 7 | 20060627 |
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 | ||
67 | struct __res_state _res; | 70 | struct __res_state _res; |