make this build on SunOS/Solaris

This commit is contained in:
Pavel Maryanov
2017-10-10 14:05:28 +01:00
committed by moneromooo-monero
parent f48aeab5c4
commit a17efcb039
9 changed files with 42 additions and 3 deletions

View File

@@ -49,6 +49,11 @@ if (WIN32)
iphlpapi
ws2_32)
endif ()
if (CMAKE_SYSTEM_NAME MATCHES "(SunOS|Solaris)")
set(CMAKE_REQUIRED_LIBRARIES
socket
nsl)
endif ()
check_function_exists(_beginthreadex HAVE__BEGINTHREADEX)
check_function_exists(arc4random HAVE_ARC4RANDOM)