From: gfleury <gfle...@disroot.org> Message-ID: <20250815181500.107433-5-gfle...@disroot.org> --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 1 + sysdeps/mach/htl/pt-stack-alloc.c | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/htl/Makefile b/htl/Makefile index 1b2b501fef..88d02ca8a2 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -37,7 +37,6 @@ libpthread-routines := \ pt-mutex-transfer-np \ pt-hurd-cond-wait \ pt-hurd-cond-timedwait \ - pt-stack-alloc \ pt-thread-alloc \ pt-thread-start \ pt-thread-terminate \ @@ -208,6 +207,7 @@ routines := \ pt-sigmask \ pt-sigstate \ pt-sigstate-destroy \ + pt-stack-alloc \ pt-timedblock \ pt-timedblock-intr \ pt-wakeup \ diff --git a/htl/Versions b/htl/Versions index 851a2a5398..8d9dad887c 100644 --- a/htl/Versions +++ b/htl/Versions @@ -245,6 +245,7 @@ libc { __pthread_sigstate; __pthread_sigstate_destroy; __pthread_sigmask; + __pthread_stack_alloc; __pthread_timedblock; __pthread_timedblock_intr; __pthread_wakeup; diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 54385630b1..28b7785045 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -229,6 +229,7 @@ libc_hidden_proto (__pthread_dealloc_finish) /* Allocate a stack of size STACKSIZE. The stack base shall be returned in *STACKADDR. */ extern int __pthread_stack_alloc (void **stackaddr, size_t stacksize); +libc_hidden_proto (__pthread_stack_alloc) /* Deallocate the stack STACKADDR of size STACKSIZE. */ extern void __pthread_stack_dealloc (void *stackaddr, size_t stacksize); diff --git a/sysdeps/mach/htl/pt-stack-alloc.c b/sysdeps/mach/htl/pt-stack-alloc.c index 3e196f8ca7..64cc18657e 100644 --- a/sysdeps/mach/htl/pt-stack-alloc.c +++ b/sysdeps/mach/htl/pt-stack-alloc.c @@ -21,6 +21,7 @@ #include <mach.h> #include <pt-internal.h> +#include <ldsodefs.h> /* Allocate a new stack of size STACKSIZE. If successful, store the address of the newly allocated stack in *STACKADDR and return 0. @@ -44,3 +45,4 @@ __pthread_stack_alloc (void **stackaddr, size_t stacksize) err = EAGAIN; return err; } +libc_hidden_def (__pthread_stack_alloc) -- 2.47.2