htl: Fix __pthread_init_thread declaration and definition

0e75c4a463 ("hurd: Fix pthread_self() without libpthread") added a
declaration for ___pthread_init_thread instead of __pthread_init_thread,
and missed defining the external hidden symbol.
This commit is contained in:
Samuel Thibault 2024-07-17 14:56:14 +02:00
parent 0e75c4a463
commit 6ed76f4efc
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@
struct __pthread __pthread_init_thread = {
.thread = 1,
};
libc_hidden_def (__pthread_init_thread)
__thread struct __pthread *___pthread_self = &__pthread_init_thread;
libc_hidden_tls_def (___pthread_self)

View File

@ -34,8 +34,8 @@
extern __thread struct __pthread *___pthread_self;
libc_hidden_tls_proto (___pthread_self)
extern struct __pthread ___pthread_init_thread;
libc_hidden_proto (___pthread_init_thread)
extern struct __pthread __pthread_init_thread;
libc_hidden_proto (__pthread_init_thread)
#ifdef DEBUG
#define _pthread_self() \