about summary refs log tree commit diff
path: root/resolv/herror.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/herror.c')
-rw-r--r--resolv/herror.c2
1 files changed, 2 insertions, 0 deletions
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 --