[bugfix] fix win32 incompatible pointer type error and cmake warnings

This commit is contained in:
Michael Lee
2025-08-21 14:37:21 +08:00
parent 34fa519dc0
commit 84add811a7
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
if (CMAKE_VERSION VERSION_LESS "3.0")
cmake_minimum_required(VERSION 2.8)
else()
cmake_minimum_required(VERSION 3.6)
cmake_minimum_required(VERSION 3.10)
endif()
project(GmSSL C)

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;