diff --git a/htl/Makefile b/htl/Makefile index 8dee043975..168b211905 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -109,7 +109,6 @@ libpthread-routines := \ pt-timedblock \ pt-block-intr \ pt-timedblock-intr \ - pt-wakeup \ pt-docancel \ pt-sysdep \ pt-setup \ @@ -211,6 +210,7 @@ routines := \ pt-sigmask \ pt-sigstate \ pt-sigstate-destroy \ + pt-wakeup \ # routines shared-only-routines = forward diff --git a/htl/Versions b/htl/Versions index 02d655d6bd..996626df2f 100644 --- a/htl/Versions +++ b/htl/Versions @@ -101,6 +101,7 @@ libc { __pthread_sigstate; __pthread_sigstate_destroy; __pthread_sigmask; + __pthread_wakeup; } } diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 2b4331a6c0..de459d7380 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -283,7 +283,7 @@ extern error_t __pthread_timedblock_intr (struct __pthread *__restrict thread, /* Wakeup THREAD. */ extern void __pthread_wakeup (struct __pthread *thread); - +libc_hidden_proto (__pthread_wakeup) /* Perform a cancelation. The CANCEL_LOCK member of the given thread must be locked before calling this function, which must unlock it. */ diff --git a/sysdeps/mach/htl/pt-wakeup.c b/sysdeps/mach/htl/pt-wakeup.c index c7c0c3ba5b..2855bcb1e5 100644 --- a/sysdeps/mach/htl/pt-wakeup.c +++ b/sysdeps/mach/htl/pt-wakeup.c @@ -35,3 +35,4 @@ __pthread_wakeup (struct __pthread *thread) 0, MACH_PORT_NULL); assert_perror (err); } +libc_hidden_def (__pthread_wakeup)