diff options
-rw-r--r-- | sysdeps/hurd/pt-key.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/hurd/pt-key.h b/sysdeps/hurd/pt-key.h index 494e01d..7b6a2c2 100644 --- a/sysdeps/hurd/pt-key.h +++ b/sysdeps/hurd/pt-key.h @@ -19,6 +19,7 @@ #include <pthread.h> #include <hurd/ihash.h> +#include <libc-lockP.h> #define PTHREAD_KEY_MEMBERS \ hurd_ihash_t thread_specifics; @@ -59,18 +60,18 @@ __pthread_key_lock_ready (void) int err; pthread_mutexattr_t attr; - err = pthread_mutexattr_init (&attr); + err = __pthread_mutexattr_init (&attr); assert_perror (err); - err = pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE); + err = __pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE); assert_perror (err); - err = pthread_mutex_init (&__pthread_key_lock, &attr); + err = _pthread_mutex_init (&__pthread_key_lock, &attr); assert_perror (err); - err = pthread_mutexattr_destroy (&attr); + err = __pthread_mutexattr_destroy (&attr); assert_perror (err); } - pthread_once (&o, do_init); + __pthread_once (&o, do_init); } |