http.h: Move 'u_long nonblocking' to _WIN32 block

This commit is contained in:
Mateusz Dukat
2025-05-13 00:31:12 +02:00
committed by GitHub
parent 524e45af1b
commit 3a3430e79e
+1 -1
View File
@@ -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 );