diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-05 17:06:58 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-05 17:06:58 +0100 |
commit | d07a0b298b767d4e4cdd152cca57c8bf17915b27 (patch) | |
tree | 8cc050f0e9ae1ea99d88c08dab4f718720534df9 | |
parent | 38a7787625d4ebbf0562c46e507e84eda948a106 (diff) | |
download | eurephia-d07a0b298b767d4e4cdd152cca57c8bf17915b27.tar.gz eurephia-d07a0b298b767d4e4cdd152cca57c8bf17915b27.tar.xz eurephia-d07a0b298b767d4e4cdd152cca57c8bf17915b27.zip |
Added check for sem_timedwait() function in CMake rules. Needed for fw implementation
-rw-r--r-- | plugin/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index de67d1a..3b21784 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -21,6 +21,7 @@ IF(FW_IPTABLES) ENDIF(FW_IPTABLES) CHECK_LIBRARY_EXISTS(rt sem_wait "" HAVE_RT_SEM_WAIT) +CHECK_LIBRARY_EXISTS(rt sem_timedwait "" HAVE_RT_SEM_TIMEDWAIT) CHECK_LIBRARY_EXISTS(rt sem_post "" HAVE_RT_SEM_POST) CHECK_LIBRARY_EXISTS(rt mq_open "" HAVE_RT_MQ_OPEN) CHECK_LIBRARY_EXISTS(rt mq_close "" HAVE_RT_MQ_CLOSE) @@ -28,9 +29,9 @@ CHECK_LIBRARY_EXISTS(rt mq_unlink "" HAVE_RT_MQ_UNLINK) CHECK_LIBRARY_EXISTS(rt mq_send "" HAVE_RT_MQ_SEND) CHECK_LIBRARY_EXISTS(rt mq_receive "" HAVE_RT_MQ_RECEIVE) CHECK_LIBRARY_EXISTS(rt mq_getattr "" HAVE_RT_MQ_GETATTR) -IF(NOT HAVE_RT_SEM_WAIT OR NOT HAVE_RT_SEM_POST) +IF(NOT HAVE_RT_SEM_WAIT OR NOT HAVE_RT_SEM_TIMEDWAIT OR NOT HAVE_RT_SEM_POST) message(FATAL_ERROR "Missing proper pthread semaphore support") -ENDIF(NOT HAVE_RT_SEM_WAIT OR NOT HAVE_RT_SEM_POST) +ENDIF(NOT HAVE_RT_SEM_WAIT OR NOT HAVE_RT_SEM_TIMEDWAIT OR NOT HAVE_RT_SEM_POST) IF(NOT HAVE_RT_MQ_OPEN OR NOT HAVE_RT_MQ_CLOSE OR NOT HAVE_RT_MQ_UNLINK OR NOT HAVE_RT_MQ_SEND OR NOT HAVE_RT_MQ_RECEIVE OR NOT HAVE_RT_MQ_GETATTR) message(FATAL_ERROR "Missing proper pthread message queue support") ENDIF(NOT HAVE_RT_MQ_OPEN OR NOT HAVE_RT_MQ_CLOSE OR NOT HAVE_RT_MQ_UNLINK OR NOT HAVE_RT_MQ_SEND OR NOT HAVE_RT_MQ_RECEIVE OR NOT HAVE_RT_MQ_GETATTR) |