mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:07:28 +03:00
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'.
This commit is contained in:
parent
f0f95c97f7
commit
ca1b34b887
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue