]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix Linux pre-fill `HAVE_POSIX_STRERROR_R` (when `_CURL_PREFILL=ON`)
authorViktor Szakats <commit@vsz.me>
Sat, 18 Oct 2025 12:25:08 +0000 (14:25 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 18 Oct 2025 12:30:43 +0000 (14:30 +0200)
It depends on C library.

Follow-up to f30f1307c1d9d70a96557359f039ba7ef9b077fb #19116

CMake/unix-cache.cmake

index a0369e84e52f5d3c8e41001da4bc743443ee424c..556e871a03cc0246e5bae5cf40a27598d15938b7 100644 (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()