summaryrefslogtreecommitdiff
path: root/libc/inet/herror.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/herror.c')
-rw-r--r--libc/inet/herror.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/inet/herror.c b/libc/inet/herror.c
index b95d3d913..51b858f54 100644
--- a/libc/inet/herror.c
+++ b/libc/inet/herror.c
@@ -23,6 +23,8 @@
#include <string.h>
#include <netdb.h>
+#ifdef L_herror
+
static const char *const h_errlist[] = {
"Error 0",
"Unknown host", /* 1 HOST_NOT_FOUND */
@@ -51,3 +53,12 @@ void herror(const char *s)
}
fprintf(stderr, "%s%s%s\n", s, c, p);
}
+
+#endif
+
+#ifdef L_hstrerror
+const char *hstrerror(int err)
+{
+ return(strerror(err));
+}
+#endif