summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-12 20:48:31 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-13 16:42:04 +0100
commit02ab53ce051df9a6b70b8f075956ed3a41f9979e (patch)
tree6c15b02a2250dad0501124b9e1d4d538dcd38915
parent9908c076ab3fafa18f00c866840819d52bc6b00f (diff)
downloadlibgit2-02ab53ce051df9a6b70b8f075956ed3a41f9979e.tar.gz
cmake: use `check_symbol_exists` for rand functions
`check_symbol_exists` is superior to `check_function_exists`; use it consistently in our cmake configuration
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e9de94b52..8525acdd8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -84,8 +84,8 @@ check_prototype_definition_safe(qsort_s
# random / entropy data
-check_function_exists(getentropy GIT_RAND_GETENTROPY)
-check_function_exists(getloadavg GIT_RAND_GETLOADAVG)
+check_symbol_exists(getentropy unistd.h GIT_RAND_GETENTROPY)
+check_symbol_exists(getloadavg stdlib.h GIT_RAND_GETLOADAVG)
# poll