Skip to content

Commit 9bc82c8

Browse files
committed
cmake: detect getentropy
Look for `getentropy` and flag its existence.
1 parent 7eb7edd commit 9bc82c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ check_prototype_definition(qsort_r
6868

6969
check_function_exists(qsort_s GIT_QSORT_S)
7070

71+
# random / entropy data
72+
73+
check_function_exists(getentropy GIT_RAND_GETENTROPY)
74+
7175
# determine architecture of the machine
7276

7377
if(CMAKE_SIZEOF_VOID_P EQUAL 8)

0 commit comments

Comments
 (0)