mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08: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
@ -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…
Reference in New Issue
Block a user