aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-25 13:43:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-25 13:43:19 +0000
commit3ecf63fa66e268c8a76996f8d453cca12cfae324 (patch)
tree038205447937c6893ed588b2f3a090cea2348e0a /lib
parent762dcf0780b0100f50fad21a5d3e5e5613def267 (diff)
win32 doesn't need and even doesn't build if we extern declare sys_nerr
Diffstat (limited to 'lib')
-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.