aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-29 22:44:56 -0800
committerChris Robinson <[email protected]>2009-11-29 22:44:56 -0800
commit15aad09ce73e1a71837579be96348c8708c127ea (patch)
tree8769b3e4ee54804005b5b0e2eb26c1962fb36e23
parentfdd314f7f8eddb6085a69b812bfa5a74dff6533d (diff)
Check for the pthread_setschedparam function
-rw-r--r--CMakeLists.txt2
-rw-r--r--config.h.in3
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10f0214f..512bb95a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -247,6 +247,8 @@ IF(NOT HAVE_WINDOWS_H)
SET(EXTRA_LIBS pthread ${EXTRA_LIBS})
ENDIF()
+ CHECK_LIBRARY_EXISTS(pthread pthread_setschedparam "" HAVE_PTHREAD_SETSCHEDPARAM)
+
CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_LIBRT)
IF(HAVE_LIBRT)
SET(EXTRA_LIBS rt ${EXTRA_LIBS})
diff --git a/config.h.in b/config.h.in
index 93c13a63..8ccdf547 100644
--- a/config.h.in
+++ b/config.h.in
@@ -79,4 +79,7 @@
/* Define if we have _controlfp() */
#cmakedefine HAVE__CONTROLFP
+/* Define if we have pthread_setschedparam() */
+#cmakedefine HAVE_PTHREAD_SETSCHEDPARAM
+
#endif