cmake: fix ENABLE_UNIX_SOCKETS=OFF with pre-fill enabled on unix

Cherry-picked from #17988
This commit is contained in:
Viktor Szakats 2025-07-20 00:16:09 +02:00
parent f99210b49c
commit c85ee70e21
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View 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()