aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-17 19:01:12 -0700
committerChris Robinson <[email protected]>2014-04-17 19:01:12 -0700
commit528c8c5e774b28b74393b5517d8bee268f1d9624 (patch)
tree7d9193cc8f0fa87beb199875eaf33e206298f92d /CMakeLists.txt
parent8a00c240126d4138df21630f630da4c4f551000d (diff)
Check explicitly for pthread_mutexattr_setkind_np before use
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82756531..d820fecf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -488,6 +488,9 @@ IF(NOT HAVE_WINDOWS_H)
IF(NOT HAVE_PTHREAD_SETNAME_NP)
CHECK_SYMBOL_EXISTS(pthread_set_name_np pthread.h HAVE_PTHREAD_SET_NAME_NP)
ENDIF()
+ IF(HAVE_PTHREAD_NP_H)
+ CHECK_SYMBOL_EXISTS(pthread_mutexattr_setkind_np "pthread.h;pthread_np.h" HAVE_PTHREAD_MUTEXATTR_SETKIND_NP)
+ ENDIF()
CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_LIBRT)
IF(HAVE_LIBRT)