Module: xenomai-2.5
Branch: master
Commit: 4dc4361cef9025d125a7a28e5ca02d82c6854345
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=4dc4361cef9025d125a7a28e5ca02d82c6854345

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Thu Apr  1 22:02:42 2010 +0200

testsuite: fix compilation of cond-torture with uclibc

---

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

diff --git a/src/testsuite/unit/cond-torture.c 
b/src/testsuite/unit/cond-torture.c
index a20e12f..2d40a29 100644
--- a/src/testsuite/unit/cond-torture.c
+++ b/src/testsuite/unit/cond-torture.c
@@ -47,13 +47,13 @@ int mutex_init(mutex_t *mutex, int type, int pi)
 
        pthread_mutexattr_init(&mattr);
        pthread_mutexattr_settype(&mattr, type);
-       if (pi != 0)
 #ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
+       if (pi != 0)
                pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
 
        err = pthread_mutex_init(mutex, &mattr);
 #else
-       else {
+       if (pi != 0) {
                err = ENOSYS;
                goto out;
        }


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

Reply via email to