Browse Source

Guard __pthread_mutex_* to be used exclusively within uClibc, do we need this header at all installed?

Peter S. Mazinger 19 years ago
parent
commit
58ac99c712
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/bits/uClibc_pthread.h

+ 2 - 0
libc/sysdeps/linux/common/bits/uClibc_pthread.h

@@ -27,11 +27,13 @@
 # error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
 # error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
 #endif
 #endif
 
 
+#if defined _LIBC && ( defined IS_IN_libc || defined NOT_IN_libc )
 extern int __pthread_mutex_init (pthread_mutex_t *__restrict __mutex,
 extern int __pthread_mutex_init (pthread_mutex_t *__restrict __mutex,
 								 __const pthread_mutexattr_t *__restrict
 								 __const pthread_mutexattr_t *__restrict
 								 __mutex_attr) attribute_hidden;
 								 __mutex_attr) attribute_hidden;
 extern int __pthread_mutex_trylock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_trylock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_lock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_lock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex) attribute_hidden;
+#endif
 
 
 #endif
 #endif