Module: xenomai-forge Branch: master Commit: 0322d30c47e045f8b1b1ba84f9ad24e992d151e1 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0322d30c47e045f8b1b1ba84f9ad24e992d151e1
Author: Philippe Gerum <r...@xenomai.org> Date: Wed May 8 13:14:57 2013 +0200 include/mercury: assume UNIX98 and XOPEN2K Specifically, pthread_mutexattr_setprotocol() and pthread_condattr_setclock() should be available to us. --- include/mercury/wrappers.h | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) diff --git a/include/mercury/wrappers.h b/include/mercury/wrappers.h index 843a9e1..ad8e68b 100644 --- a/include/mercury/wrappers.h +++ b/include/mercury/wrappers.h @@ -24,34 +24,4 @@ #define __RT(call) call #define __STD(call) call -#ifndef HAVE_PTHREAD_CONDATTR_SETCLOCK - -#include <pthread.h> - -static inline -int pthread_condattr_setclock(pthread_condattr_t *attr, - clockid_t clk_id) -{ - return ENOSYS; -} - -#endif /* !HAVE_PTHREAD_CONDATTR_SETCLOCK */ - -#ifndef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL - -enum -{ - PTHREAD_PRIO_NONE, - PTHREAD_PRIO_INHERIT, - PTHREAD_PRIO_PROTECT -}; - -static inline -int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol) -{ - return ENOSYS; -} - -#endif /* !HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL */ - #endif /* _MERCURY_WRAPPERS_H */ _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git