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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Aug 16 18:29:19 2009 +0200

posix: do not declare pthread_mutexattr_setprotocol if already declared by the 
glibc

---

 include/posix/pthread.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/posix/pthread.h b/include/posix/pthread.h
index 5487ee6..685b356 100644
--- a/include/posix/pthread.h
+++ b/include/posix/pthread.h
@@ -424,11 +424,13 @@ int pthread_intr_control_np(pthread_intr_t intr,
 extern "C" {
 #endif
 
+#ifndef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
 int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr,
                                  int *proto);
 
 int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr,
                                  int proto);
+#endif
 
 #ifndef HAVE_PTHREAD_CONDATTR_SETCLOCK
 int pthread_condattr_getclock(const pthread_condattr_t *attr,


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

Reply via email to