summaryrefslogtreecommitdiff
path: root/resolv/gethnamaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/gethnamaddr.c')
-rw-r--r--resolv/gethnamaddr.c2
1 files changed, 2 insertions, 0 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