From ca1b34b8871e8b8ce4a40589778c85118d4637c4 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 9 Oct 2013 14:45:42 +0200 Subject: 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'. --- lib/curl_setup_once.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3