mirror of
https://github.com/mattiasgustavsson/libs.git
synced 2026-11-30 16:48:22 +01:00
http.h: Move 'u_long nonblocking' to _WIN32 block
This commit is contained in:
@@ -316,8 +316,8 @@ HTTP_SOCKET http_internal_connect( char const* address, char const* port )
|
||||
}
|
||||
|
||||
// set socket to nonblocking mode
|
||||
u_long nonblocking = 1;
|
||||
#ifdef _WIN32
|
||||
u_long nonblocking = 1;
|
||||
int res = ioctlsocket( sock, FIONBIO, &nonblocking );
|
||||
#else
|
||||
int flags = fcntl( sock, F_GETFL, 0 );
|
||||
|
||||
Reference in New Issue
Block a user