diff --git a/http.h b/http.h index 9d6f9dd..9db770c 100644 --- a/http.h +++ b/http.h @@ -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 );