mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
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:
parent
0e75c4a463
commit
6ed76f4efc
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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() \
|
||||
|
|
Loading…
Add table
Reference in a new issue