From b65f0e04b90b37882c731f448a36812ac84e6472 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 10 May 2024 18:01:22 +0200 Subject: [PATCH] autotools: fix `HAVE_IOCTLSOCKET_FIONBIO` test for gcc 14 ``` conftest.c:152:41: error: passing argument 3 of 'ioctlsocket' from incompatible pointer type [-Wincompatible-pointer-types] 152 | if(0 != ioctlsocket(0, FIONBIO, &flags)) | ^~~~~~ | | | int * ``` Reported-by: LigH Fixes #13579 Closes #13587 --- m4/curl-functions.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 425d9f96f8..da7131db58 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -3592,7 +3592,7 @@ AC_DEFUN([CURL_CHECK_FUNC_IOCTLSOCKET_FIONBIO], [ AC_LANG_PROGRAM([[ $curl_includes_winsock2 ]],[[ - int flags = 0; + unsigned long flags = 0; if(0 != ioctlsocket(0, FIONBIO, &flags)) return 1; ]])