]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
autotools: fix `HAVE_IOCTLSOCKET_FIONBIO` test for gcc 14
authorViktor Szakats <commit@vsz.me>
Fri, 10 May 2024 16:01:22 +0000 (18:01 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 10 May 2024 16:59:22 +0000 (18:59 +0200)
```
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

index 425d9f96f8d7847f02c28ceb2ab3ec45e43069fa..da7131db581c400757eb7f6a8600b76c22f2cf43 100644 (file)
@@ -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;
       ]])