Skip to content

Commit

Permalink
cmake: add detection of HAVE_ARC4RANDOM (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Mar 14, 2022
1 parent 845c6dc commit 1df3b9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ find_package(Backtrace)
find_package(Threads)
find_package(OpenSSL)

check_symbol_exists("arc4random" "stdlib.h" HAVE_ARC4RANDOM)
if(HAVE_ARC4RANDOM)
add_definitions(-DHAVE_ARC4RANDOM)
endif()

##############################################################################
#
Expand Down

0 comments on commit 1df3b9b

Please sign in to comment.