Commit 9bc82c8f884eda41fdb68f4862a83ee03ebcc8d2

Edward Thomson 2022-06-13T10:46:21

cmake: detect `getentropy` Look for `getentropy` and flag its existence.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 72ec410..b04339f 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)