diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-13 10:46:21 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-13 10:46:21 -0400 |
commit | 9bc82c8f884eda41fdb68f4862a83ee03ebcc8d2 (patch) | |
tree | 3dbd89e9887d6b49f2933063af77d97349162650 | |
parent | 7eb7edd4a19fb64cc2ff53d21e4d2c93a1197a2b (diff) | |
download | libgit2-9bc82c8f884eda41fdb68f4862a83ee03ebcc8d2.tar.gz |
cmake: detect `getentropy`
Look for `getentropy` and flag its existence.
-rw-r--r-- | src/CMakeLists.txt | 4 |
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) |