Skip to content

Commit 02ab53c

Browse files
committed
cmake: use check_symbol_exists for rand functions
`check_symbol_exists` is superior to `check_function_exists`; use it consistently in our cmake configuration
1 parent 9908c07 commit 02ab53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ check_prototype_definition_safe(qsort_s
8484

8585
# random / entropy data
8686

87-
check_function_exists(getentropy GIT_RAND_GETENTROPY)
88-
check_function_exists(getloadavg GIT_RAND_GETLOADAVG)
87+
check_symbol_exists(getentropy unistd.h GIT_RAND_GETENTROPY)
88+
check_symbol_exists(getloadavg stdlib.h GIT_RAND_GETLOADAVG)
8989

9090
# poll
9191

0 commit comments

Comments
 (0)