diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-18 08:03:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-18 08:03:54 +0000 |
commit | 4c08c8f7db0dc700c87654747fddaa60df87a96b (patch) | |
tree | bc08b06143514d8acdf44b57a7443d4d731caaed | |
parent | c174680a03e073b82368d0b3c5de740369acb580 (diff) |
Andrés García patched. It now checks for EWOULDBLOCK properly on windows
boxes.
-rw-r--r-- | lib/sendf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index ddc61c6b3..9ea49e5c1 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -227,7 +227,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd, } if(-1 == bytes_written) { #ifdef WIN32 - if(EWOULDBLOCK == GetLastError()) + if(WSAEWOULDBLOCK == GetLastError()) #else if(EWOULDBLOCK == errno) #endif @@ -339,7 +339,7 @@ int Curl_read(struct connectdata *conn, if(-1 == nread) { #ifdef WIN32 - if(EWOULDBLOCK == GetLastError()) + if(WSAEWOULDBLOCK == GetLastError()) #else if(EWOULDBLOCK == errno) #endif |