Module: xenomai-head
Branch: master
Commit: 9193b6091ab56300fc30179ebbc2614a188cd8b0
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=9193b6091ab56300fc30179ebbc2614a188cd8b0

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jun 17 13:16:30 2009 +0200

testsuite/mutex-torture: make sure pthread_mutexattr_setprotocol() is available 
when building

---

 src/testsuite/unit/mutex-torture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/testsuite/unit/mutex-torture.c 
b/src/testsuite/unit/mutex-torture.c
index c7beb9b..6a236bc 100644
--- a/src/testsuite/unit/mutex-torture.c
+++ b/src/testsuite/unit/mutex-torture.c
@@ -156,7 +156,7 @@ int dispatch(const char *service_name, int service_type, 
int check, ...)
 #ifdef __POSIX_SKIN__
                mutex = va_arg(ap, pthread_mutex_t *);
                pthread_mutexattr_init(&mutexattr);
-#if _POSIX_THREAD_PRIO_INHERIT != -1
+#ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
                if (va_arg(ap, int) != 0)
                        pthread_mutexattr_setprotocol(&mutexattr,
                                                      PTHREAD_PRIO_INHERIT);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to