[PATCH] CMake: Fix arc4random detection
Brad Smith
brad at comstyle.com
Wed Jul 9 14:21:48 PDT 2014
Here is a patch to fix arc4random detection when using CMake.
>From Pascal Stumpf <Pascal.Stumpf at cubes.de>.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: include/llvm/Config/config.h.cmake
===================================================================
--- include/llvm/Config/config.h.cmake (revision 212648)
+++ include/llvm/Config/config.h.cmake (working copy)
@@ -25,7 +25,7 @@
#cmakedefine ENABLE_TIMESTAMPS ${ENABLE_TIMESTAMPS}
/* Define to 1 if you have the `arc4random' function. */
-#cmakedefine HAVE_ARC4RANDOM
+#cmakedefine HAVE_DECL_ARC4RANDOM ${HAVE_DECL_ARC4RANDOM}
/* Define to 1 if you have the `backtrace' function. */
#cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}
More information about the llvm-commits
mailing list