cmake: fix Linux pre-fill HAVE_POSIX_STRERROR_R (when _CURL_PREFILL=ON)

It depends on C library.

Follow-up to f30f1307c1 #19116
This commit is contained in:
Viktor Szakats
2025-10-18 14:25:08 +02:00
parent f30f1307c1
commit a000444cb0

View File

@@ -204,7 +204,7 @@ endif()
set(HAVE_POLL 1)
set(HAVE_POLL_H 1)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(HAVE_POSIX_STRERROR_R 0)
# Depends on C library.
else()
set(HAVE_POSIX_STRERROR_R 1)
endif()