summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/herror.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/herror.c')
-rw-r--r--lib/libc/net/herror.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/net/herror.c b/lib/libc/net/herror.c
index 9f3dbb7..b84c06c 100644
--- a/lib/libc/net/herror.c
+++ b/lib/libc/net/herror.c
@@ -69,9 +69,7 @@ const char *h_errlist[] = {
"Unknown server error", /* 3 NO_RECOVERY */
"No address associated with name", /* 4 NO_ADDRESS */
};
-int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] };
-
-int h_errno;
+const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] };
/*
* herror --
@@ -110,3 +108,6 @@ hstrerror(err)
return (h_errlist[err]);
return ("Unknown resolver error");
}
+
+#undef h_errno
+int h_errno;
OpenPOWER on IntegriCloud