mirror of
https://github.com/curl/curl.git
synced 2026-08-26 14:33:32 +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
|
|
@ -84,7 +84,7 @@
|
|||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef USE_WINSOCK
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define EISCONN WSAEISCONN
|
||||
|
|
@ -121,7 +121,7 @@ singleipconnect(struct connectdata *conn,
|
|||
*/
|
||||
int Curl_sockerrno(void)
|
||||
{
|
||||
#ifdef WIN32
|
||||
#ifdef USE_WINSOCK
|
||||
return (int)WSAGetLastError();
|
||||
#else
|
||||
return errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue