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 /openbsd-compat/getrrsetbyname.c | |
parent | 66c32d5caa533560a16638ab688772833e602d28 (diff) |
- (dtucker) [openbsd-compat/getrrsetbyname.c] Undef _res before defining it,
prevents warnings on platforms where _res is in the system headers.
Diffstat (limited to 'openbsd-compat/getrrsetbyname.c')
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 8dc74470..a855ad6d 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c @@ -62,6 +62,9 @@ extern int h_errno; #define _THREAD_PRIVATE(a,b,c) (c) /* to avoid conflicts where a platform already has _res */ +#ifdef _res +# undef _res +#endif #define _res _compat_res struct __res_state _res; |