aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/strerror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index 32ece136e..a6f25d0c4 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -488,7 +488,9 @@ get_winsock_error (int err, char *buf, size_t len)
}
#endif /* WIN32 && !__CYGWIN__ */
+#ifndef WIN32
extern int sys_nerr;
+#endif
/*
* Our thread-safe and smart strerror() replacement.