summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-12-24 14:01:42 -0800
committerGarrett D'Amore <garrett@damore.org>2019-12-24 14:07:25 -0800
commit252ea41be8bab992dadabec0e4f1d77650949f4c (patch)
tree14e87f34b3137745cd2dd8c519070b3319330c3d /CMakeLists.txt
parent20dfa3c924dabf20bedf6f82969e7e1467e799af (diff)
downloadnng-252ea41be8bab992dadabec0e4f1d77650949f4c.tar.gz
nng-252ea41be8bab992dadabec0e4f1d77650949f4c.tar.bz2
nng-252ea41be8bab992dadabec0e4f1d77650949f4c.zip
fixes #1038 Linux should use getentropy or getrandom
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa3bac8b..abe6586b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -327,6 +327,9 @@ else ()
nng_check_func(lockf NNG_HAVE_LOCKF)
nng_check_func(flock NNG_HAVE_FLOCK)
+ nng_check_func(getentropy NNG_HAVE_GETENTROPY)
+ nng_check_func(getrandom NNG_HAVE_GETRANDOM)
+ nng_check_func(arc4random_buf NNG_HAVE_ARC4RANDOM)
nng_check_lib(rt clock_gettime NNG_HAVE_CLOCK_GETTIME)
nng_check_lib(pthread sem_wait NNG_HAVE_SEMAPHORE_PTHREAD)