aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 14a1ae1..c9ce99d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,6 +142,11 @@ if(HAVE_ARC4RANDOM_BUF)
142 add_definitions(-DHAVE_ARC4RANDOM_BUF) 142 add_definitions(-DHAVE_ARC4RANDOM_BUF)
143endif() 143endif()
144 144
145check_function_exists(arc4random_uniform HAVE_ARC4RANDOM_UNIFORM)
146if(HAVE_ARC4RANDOM_UNIFORM)
147 add_definitions(-DHAVE_ARC4RANDOM_UNIFORM)
148endif()
149
145check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) 150check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO)
146if(HAVE_EXPLICIT_BZERO) 151if(HAVE_EXPLICIT_BZERO)
147 add_definitions(-DHAVE_EXPLICIT_BZERO) 152 add_definitions(-DHAVE_EXPLICIT_BZERO)