Merge pull request #1839 from mikecovlee/master

[bugfix] fix win32 incompatible pointer type error and cmake warnings
This commit is contained in:
Zhi Guan
2025-12-08 20:42:24 +08:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -2321,7 +2321,7 @@ int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
{
int flags = 0;
#ifdef WIN32
if( ioctlsocket(sock, FIONBIO, &flags) != 0) {
if( ioctlsocket(sock, FIONBIO, (u_long*)&flags) != 0) {
error_puts("socket in non-blocking mode");
//nginx will pass a socket in non-blocking mode
//return -1;