Fixed pthread_mutex_timedlock detection.

This commit is contained in:
Armin Novak 2016-06-02 15:33:00 +02:00
parent fc2f43e3da
commit e40546485d
2 changed files with 4 additions and 4 deletions

View File

@ -494,12 +494,12 @@ endif()
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
if(NOT IOS AND NOT ANDROID)
if(NOT IOS)
find_package(Threads REQUIRED)
endif()
if(NOT WIN32)
check_library_exists(pthread pthread_mutex_timedlock "" HAVE_PTHREAD_MUTEX_TIMEDLOCK)
check_symbol_exists(pthread_mutex_timedlock pthread.h HAVE_PTHREAD_MUTEX_TIMEDLOCK)
endif()
if(WITH_VALGRIND_MEMCHECK)

View File

@ -70,7 +70,7 @@ if(FREERDP_BUILD)
else()
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
if(NOT IOS AND NOT ANDROID)
if(NOT IOS)
find_package(Threads REQUIRED)
endif()
@ -99,7 +99,7 @@ else()
endif()
if(NOT WIN32)
check_library_exists(pthread pthread_mutex_timedlock "" HAVE_PTHREAD_MUTEX_TIMEDLOCK)
check_symbol_exists(pthread pthread_mutex_timedlock "" HAVE_PTHREAD_MUTEX_TIMEDLOCK)
endif()
set(OPENSSL_FEATURE_TYPE "OPTIONAL")