summaryrefslogtreecommitdiff
path: root/libc/inet/herror.c
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-01-17 03:58:58 +0000
committerDavid McCullough <davidm@snapgear.com>2002-01-17 03:58:58 +0000
commit9557844c482a3a2302df69e06677178247634d56 (patch)
tree12f452f04f869fdd063f54bb964e96ac8ca49f2c /libc/inet/herror.c
parentae36d86f4cd1172196b21e5775ff75b288b24d9a (diff)
Add in support for inet_netof, inet_lnaof, inet_makeaddr and hstrerror.
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