Check for the pthread_setschedparam function

This commit is contained in:
Chris Robinson
2009-11-29 22:44:56 -08:00
parent fdd314f7f8
commit 15aad09ce7
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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})
+3
View File
@@ -79,4 +79,7 @@
/* Define if we have _controlfp() */
#cmakedefine HAVE__CONTROLFP
/* Define if we have pthread_setschedparam() */
#cmakedefine HAVE_PTHREAD_SETSCHEDPARAM
#endif