From: Viktor Szakats Date: Fri, 10 May 2024 16:01:22 +0000 (+0200) Subject: autotools: fix `HAVE_IOCTLSOCKET_FIONBIO` test for gcc 14 X-Git-Tag: curl-8_8_0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b65f0e04b90b37882c731f448a36812ac84e6472;p=thirdparty%2Fcurl.git 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 --- 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; ]])