]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix `ENABLE_UNIX_SOCKETS=OFF` with pre-fill enabled on unix
authorViktor Szakats <commit@vsz.me>
Sat, 19 Jul 2025 22:16:09 +0000 (00:16 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 23 Jul 2025 17:52:18 +0000 (19:52 +0200)
Cherry-picked from #17988

CMakeLists.txt

index d2bfd2f6f8373110c96835169a34bf5501cf5aee..530f54e2713d78b27787f6f34569c41b0c351da3 100644 (file)
@@ -1502,6 +1502,7 @@ if(ENABLE_UNIX_SOCKETS AND NOT WINCE)
     check_struct_has_member("struct sockaddr_un" "sun_path" "sys/un.h" USE_UNIX_SOCKETS)
   endif()
 else()
+  set(USE_UNIX_SOCKETS 0)
   unset(USE_UNIX_SOCKETS CACHE)
 endif()