summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-05-05 16:36:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-05-05 16:36:16 +0000
commite0b0e7b2950d3c132004105bba5f36a8eaea7925 (patch)
treeefbc741458280913c775d1bb3b0cda7212b9b8e0 /cmake
parent0017180e70edb1461e06a4aeafd95d760a539e69 (diff)
downloadllvm-e0b0e7b2950d3c132004105bba5f36a8eaea7925.tar.gz
llvm-e0b0e7b2950d3c132004105bba5f36a8eaea7925.tar.bz2
llvm-e0b0e7b2950d3c132004105bba5f36a8eaea7925.tar.xz
[build] Add build check for ::arc4random().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 37b3646180..51b64ac8bb 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -91,6 +91,7 @@ if( NOT PURE_WINDOWS )
endif()
# function checks
+check_symbol_exists(arc4random "stdlib.h" HAVE_ARC4RANDOM)
check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)