From 9557844c482a3a2302df69e06677178247634d56 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 17 Jan 2002 03:58:58 +0000 Subject: Add in support for inet_netof, inet_lnaof, inet_makeaddr and hstrerror. --- libc/inet/herror.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libc/inet/herror.c') 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 #include +#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 -- cgit v1.2.3