diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-07-17 14:56:14 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-07-17 15:04:25 +0200 |
commit | 6ed76f4efc856431cd8511ef881a494a13280653 (patch) | |
tree | 59887360c2f3af91a5d6c162f2a03a7a9fa033a0 | |
parent | 0e75c4a4634f44ad24a65fda01f571781ac79d5f (diff) | |
download | glibc-6ed76f4efc856431cd8511ef881a494a13280653.zip glibc-6ed76f4efc856431cd8511ef881a494a13280653.tar.gz glibc-6ed76f4efc856431cd8511ef881a494a13280653.tar.bz2 |
htl: Fix __pthread_init_thread declaration and definition
0e75c4a4634f ("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.
-rw-r--r-- | sysdeps/mach/hurd/htl/pt-pthread_self.c | 1 | ||||
-rw-r--r-- | sysdeps/mach/hurd/htl/pt-sysdep.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/htl/pt-pthread_self.c b/sysdeps/mach/hurd/htl/pt-pthread_self.c index 08ef2e4..d11d0ec 100644 --- a/sysdeps/mach/hurd/htl/pt-pthread_self.c +++ b/sysdeps/mach/hurd/htl/pt-pthread_self.c @@ -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) diff --git a/sysdeps/mach/hurd/htl/pt-sysdep.h b/sysdeps/mach/hurd/htl/pt-sysdep.h index ef7f509..8e94395 100644 --- a/sysdeps/mach/hurd/htl/pt-sysdep.h +++ b/sysdeps/mach/hurd/htl/pt-sysdep.h @@ -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() \ |