diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-05-04 22:39:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-04 22:39:47 +0000 |
commit | e85e30546c89e17b6fb0cf383de25b7ed7f3bf3d (patch) | |
tree | 2a1b3fd6b5c6a93bbae756e8dcea01c7c43fa198 /lib/file.c | |
parent | 758f6eed5169f20635c410077b840c1ffb741ddb (diff) |
Roland Blom filed bug report #1481217
(http://curl.haxx.se/bug/view.cgi?id=1481217), with follow-ups by Michele Bini
and David Byron. libcurl previously wrongly used GetLastError() on windows to
get error details after socket-related function calls, when it really should
use WSAGetLastError() instead.
When changing to this, the former function Curl_ourerrno() is now instead
called Curl_sockerrno() as it is necessary to only use it to get errno from
socket-related functions as otherwise it won't work as intended on Windows.
Diffstat (limited to 'lib/file.c')
-rw-r--r-- | lib/file.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/file.c b/lib/file.c index d39b12d43..7415d8a78 100644 --- a/lib/file.c +++ b/lib/file.c @@ -37,8 +37,6 @@ #include <sys/stat.h> #endif -#include <errno.h> - #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) #include <time.h> #include <io.h> |