summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/llvm/Config/config.h.cmake3
-rw-r--r--include/llvm/Config/config.h.in3
2 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake
index 24f9c1f671..4f909502bc 100644
--- a/include/llvm/Config/config.h.cmake
+++ b/include/llvm/Config/config.h.cmake
@@ -23,6 +23,9 @@
/* Define if timestamp information (e.g., __DATE___) is allowed */
#cmakedefine ENABLE_TIMESTAMPS ${ENABLE_TIMESTAMPS}
+/* Define to 1 if you have the `arc4random' function. */
+#cmakedefine HAVE_ARC4RANDOM
+
/* Define to 1 if you have the `argz_append' function. */
#cmakedefine HAVE_ARGZ_APPEND ${HAVE_ARGZ_APPEND}
diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 677bf2e40b..0c288885fd 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -24,6 +24,9 @@
/* Directory where gcc is installed. */
#undef GCC_INSTALL_PREFIX
+/* Define to 1 if you have the `arc4random' function. */
+#undef HAVE_ARC4RANDOM
+
/* Define to 1 if you have the `argz_append' function. */
#undef HAVE_ARGZ_APPEND