8000 cmake: use `check_symbol_exists` for rand functions · libgit2/libgit2@527cdfe · GitHub
[go: up one dir, main page]

Skip to content

Commit 527cdfe

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 56eeb9f commit 527cdfe

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)
0