diff options
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/gethnamaddr.c | 2 | ||||
-rw-r--r-- | resolv/getnetnamadr.c | 4 | ||||
-rw-r--r-- | resolv/herror.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c index 6962f59610..07da429cbf 100644 --- a/resolv/gethnamaddr.c +++ b/resolv/gethnamaddr.c @@ -133,7 +133,9 @@ typedef union { char ac; } align; +#ifndef h_errno extern int h_errno; +#endif #ifdef DEBUG static void diff --git a/resolv/getnetnamadr.c b/resolv/getnetnamadr.c index 6f5bf008c7..abbc3a3e6f 100644 --- a/resolv/getnetnamadr.c +++ b/resolv/getnetnamadr.c @@ -58,9 +58,11 @@ static char rcsid[] = "$Id$"; #include <errno.h> #include <string.h> +#ifndef h_errno extern int h_errno; +#endif -#if defined(mips) && defined(SYSTYPE_BSD43) +#if defined(mips) && defined(SYSTYPE_BSD43) && !defined(errno) extern int errno; #endif diff --git a/resolv/herror.c b/resolv/herror.c index 70f13c3ad9..571d1a0478 100644 --- a/resolv/herror.c +++ b/resolv/herror.c @@ -78,7 +78,9 @@ const char *h_errlist[] = { }; int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; +#ifndef h_errno extern int h_errno; +#endif /* * herror -- |