From 4c08c8f7db0dc700c87654747fddaa60df87a96b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 18 Jan 2002 08:03:54 +0000 Subject: [PATCH] =?utf8?q?Andr=E9s=20Garc=EDa=20patched.=20It=20now=20chec?= =?utf8?q?ks=20for=20EWOULDBLOCK=20properly=20on=20windows=20boxes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 ddc61c6..9ea49e5 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 -- 2.7.4