summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit407a85e7a6c889ea4f561b7b0daee30d4bb0d865 (patch)
treee42904113f74c1119261b31726c98b01339e36ce /llvm/include
parent6764af97bcd66e8725e33b5149467b9e3b4e9793 (diff)
downloadbcm5719-llvm-407a85e7a6c889ea4f561b7b0daee30d4bb0d865.tar.gz
bcm5719-llvm-407a85e7a6c889ea4f561b7b0daee30d4bb0d865.zip
[build] Add build check for ::arc4random().
llvm-svn: 156236
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Config/config.h.cmake3
-rw-r--r--llvm/include/llvm/Config/config.h.in3
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake
index 24f9c1f671e..4f909502bca 100644
--- a/llvm/include/llvm/Config/config.h.cmake
+++ b/llvm/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/llvm/include/llvm/Config/config.h.in b/llvm/include/llvm/Config/config.h.in
index 677bf2e40b8..0c288885fd0 100644
--- a/llvm/include/llvm/Config/config.h.in
+++ b/llvm/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
OpenPOWER on IntegriCloud