From 4c08c8f7db0dc700c87654747fddaa60df87a96b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 18 Jan 2002 08:03:54 +0000 Subject: =?UTF-8?q?Andr=E9s=20Garc=EDa=20patched.=20It=20now=20checks=20fo?= =?UTF-8?q?r=20EWOULDBLOCK=20properly=20on=20windows=20boxes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/sendf.c | 4 ++-- 1 file 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 -- cgit v1.2.3