summaryrefslogtreecommitdiff
path: root/lib/curl_setup_once.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@yahoo.no>2013-10-09 14:45:42 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-10-09 14:45:42 +0200
commitca1b34b8871e8b8ce4a40589778c85118d4637c4 (patch)
tree9f6150d3adb1084ce4e6d2259b3a3956baeaaa03 /lib/curl_setup_once.h
parentf0f95c97f752ea76e148decc8511f8af96eb62d4 (diff)
downloadcurl-ca1b34b8871e8b8ce4a40589778c85118d4637c4.tar.gz
curl_setup_once: fix errno access for lwip on Windows
lib/curl_setup_once.h assumed lwIP on Windows uses 'SetLastError()' to set network errors. It doesn't; it uses 'errno'.
Diffstat (limited to 'lib/curl_setup_once.h')
-rw-r--r--lib/curl_setup_once.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h
index 6f3240ac9..69d6d4790 100644
--- a/lib/curl_setup_once.h
+++ b/lib/curl_setup_once.h
@@ -440,7 +440,7 @@ typedef int sig_atomic_t;
* (or equivalent) on this platform to hide platform details to code using it.
*/
-#ifdef WIN32
+#if defined(WIN32) && !defined(USE_LWIPSOCK)
#define ERRNO ((int)GetLastError())
#define SET_ERRNO(x) (SetLastError((DWORD)(x)))
#else