mirror of
https://github.com/curl/curl.git
synced 2026-04-24 11:02:13 +03:00
Andrs Garca patched. It now checks for EWOULDBLOCK properly on windows
boxes.
This commit is contained in:
parent
c174680a03
commit
4c08c8f7db
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue