1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Andrs Garca patched. It now checks for EWOULDBLOCK properly on windows

boxes.
This commit is contained in:
Daniel Stenberg 2002-01-18 08:03:54 +00:00
parent c174680a03
commit 4c08c8f7db

View File

@ -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