summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-18 08:03:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-18 08:03:54 +0000
commit4c08c8f7db0dc700c87654747fddaa60df87a96b (patch)
treebc08b06143514d8acdf44b57a7443d4d731caaed
parentc174680a03e073b82368d0b3c5de740369acb580 (diff)
downloadgnurl-4c08c8f7db0dc700c87654747fddaa60df87a96b.tar.gz
gnurl-4c08c8f7db0dc700c87654747fddaa60df87a96b.tar.bz2
gnurl-4c08c8f7db0dc700c87654747fddaa60df87a96b.zip
Andrés García patched. It now checks for EWOULDBLOCK properly on windows
boxes.
-rw-r--r--lib/sendf.c4
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