projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f95c9
)
curl_setup_once: fix errno access for lwip on Windows
author
Gisle Vanem
<gvanem@yahoo.no>
Wed, 9 Oct 2013 12:45:42 +0000
(14:45 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 9 Oct 2013 12:45:42 +0000
(14:45 +0200)
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
patch
|
blob
|
history
diff --git
a/lib/curl_setup_once.h
b/lib/curl_setup_once.h
index 6f3240ac94a5c03007e7488917c6ee8df05304ec..69d6d479022c7cfbad20026f3ad75d68d382c1ec 100644
(file)
--- 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.
*/
-#if
def WIN32
+#if
defined(WIN32) && !defined(USE_LWIPSOCK)
#define ERRNO ((int)GetLastError())
#define SET_ERRNO(x) (SetLastError((DWORD)(x)))
#else