Fix configure to find arc4random via header files.
[oota-llvm.git] / cmake / config-ix.cmake
index c58e5bd97b0dbc0add304d499c92ddec42a2c9c9..93aeae1003206ef99635e92b4d6bf6ed71272f97 100755 (executable)
@@ -117,7 +117,7 @@ if( NOT PURE_WINDOWS )
 endif()
 
 # function checks
-check_symbol_exists(arc4random "stdlib.h" HAVE_ARC4RANDOM)
+check_symbol_exists(arc4random "stdlib.h" HAVE_DECL_ARC4RANDOM)
 check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
 check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
 check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)