svn commit: trunk/uClibc/libc/sysdeps/linux/common/bits

psm at uclibc.org psm at uclibc.org
Thu Feb 16 14:31:40 UTC 2006


Author: psm
Date: 2006-02-16 06:31:39 -0800 (Thu, 16 Feb 2006)
New Revision: 14076

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

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_pthread.h


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_pthread.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_pthread.h	2006-02-16 14:28:17 UTC (rev 14075)
+++ trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_pthread.h	2006-02-16 14:31:39 UTC (rev 14076)
@@ -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




More information about the uClibc-cvs mailing list