summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-06-13 10:46:21 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-06-13 10:46:21 -0400
commit9bc82c8f884eda41fdb68f4862a83ee03ebcc8d2 (patch)
tree3dbd89e9887d6b49f2933063af77d97349162650
parent7eb7edd4a19fb64cc2ff53d21e4d2c93a1197a2b (diff)
downloadlibgit2-9bc82c8f884eda41fdb68f4862a83ee03ebcc8d2.tar.gz
cmake: detect `getentropy`
Look for `getentropy` and flag its existence.
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 72ec410fc..b04339f0e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -68,6 +68,10 @@ check_prototype_definition(qsort_r
check_function_exists(qsort_s GIT_QSORT_S)
+# random / entropy data
+
+check_function_exists(getentropy GIT_RAND_GETENTROPY)
+
# determine architecture of the machine
if(CMAKE_SIZEOF_VOID_P EQUAL 8)