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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jun 23 17:26:37 2013 +0200

testsuite: enable back build over uClibc

---

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

diff --git a/src/testsuite/regression/posix/test_pip_exit.c 
b/src/testsuite/regression/posix/test_pip_exit.c
index 17f3077..47ee5c5 100644
--- a/src/testsuite/regression/posix/test_pip_exit.c
+++ b/src/testsuite/regression/posix/test_pip_exit.c
@@ -51,9 +51,10 @@ int main(void)
        check_unix(mlockall(MCL_CURRENT | MCL_FUTURE));
 
        check_pthread(pthread_mutexattr_init(&mattr));
+#ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
        check_pthread(pthread_mutexattr_setprotocol(&mattr,
                                                    PTHREAD_PRIO_INHERIT));
-
+#endif
        check_pthread(pthread_mutex_init(&mutex, &mattr));
        check_pthread(pthread_mutexattr_destroy(&mattr));
 
diff --git a/src/testsuite/unit/cond-torture.c 
b/src/testsuite/unit/cond-torture.c
index 57d47ab..e08515c 100644
--- a/src/testsuite/unit/cond-torture.c
+++ b/src/testsuite/unit/cond-torture.c
@@ -76,8 +76,10 @@ int cond_init(cond_t *cond, int absolute)
        int err;
 
        pthread_condattr_init(&cattr);
+#ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
        pthread_condattr_setclock(&cattr,
                                  absolute ? CLOCK_REALTIME : CLOCK_MONOTONIC);
+#endif
        err = pthread_cond_init(cond, &cattr);
        pthread_condattr_destroy(&cattr);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to