mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.
This commit is contained in:
parent
96445f1b7d
commit
5df4be1165
16 changed files with 49 additions and 44 deletions
|
|
@ -500,7 +500,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
|
|||
|
||||
if(-1 == nread && bytestocopy == 0) {
|
||||
int err = Curl_sockerrno();
|
||||
#ifdef WIN32
|
||||
#ifdef USE_WINSOCK
|
||||
if(WSAEWOULDBLOCK == err)
|
||||
#else
|
||||
if((EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue