Selaa lähdekoodia

seems this is the newfangled way to tell folks this stuff
is really really and we mean it this time, for uClibc only

Eric Andersen 17 vuotta sitten
vanhempi
commit
cba2c53724
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      libc/sysdeps/linux/common/bits/uClibc_pthread.h

+ 1 - 1
libc/sysdeps/linux/common/bits/uClibc_pthread.h

@@ -27,7 +27,7 @@
 # error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
 #endif
 
-#ifdef _LIBC
+#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;