summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-16 14:31:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-16 14:31:39 +0000
commit58ac99c7123e5ec489ed4868e89f50f3afaecf62 (patch)
tree6f42adb3735425499b3759e8fc4a27a2886475dd
parentb4d37f32407bdfcf388bfd6a9d131f8d2b418f37 (diff)
Guard __pthread_mutex_* to be used exclusively within uClibc, do we need this header at all installed?
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_pthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_pthread.h b/libc/sysdeps/linux/common/bits/uClibc_pthread.h
index a3be2ca35..df12fc348 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_pthread.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_pthread.h
@@ -27,11 +27,13 @@
# error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
#endif
+#if defined _LIBC && ( defined IS_IN_libc || defined NOT_IN_libc )
extern int __pthread_mutex_init (pthread_mutex_t *__restrict __mutex,
__const pthread_mutexattr_t *__restrict
__mutex_attr) 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_unlock (pthread_mutex_t *__mutex) attribute_hidden;
+#endif
#endif