mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
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.
This commit is contained in:
parent
0e75c4a463
commit
6ed76f4efc
@ -24,6 +24,7 @@
|
|||||||
struct __pthread __pthread_init_thread = {
|
struct __pthread __pthread_init_thread = {
|
||||||
.thread = 1,
|
.thread = 1,
|
||||||
};
|
};
|
||||||
|
libc_hidden_def (__pthread_init_thread)
|
||||||
|
|
||||||
__thread struct __pthread *___pthread_self = &__pthread_init_thread;
|
__thread struct __pthread *___pthread_self = &__pthread_init_thread;
|
||||||
libc_hidden_tls_def (___pthread_self)
|
libc_hidden_tls_def (___pthread_self)
|
||||||
|
@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
extern __thread struct __pthread *___pthread_self;
|
extern __thread struct __pthread *___pthread_self;
|
||||||
libc_hidden_tls_proto (___pthread_self)
|
libc_hidden_tls_proto (___pthread_self)
|
||||||
extern struct __pthread ___pthread_init_thread;
|
extern struct __pthread __pthread_init_thread;
|
||||||
libc_hidden_proto (___pthread_init_thread)
|
libc_hidden_proto (__pthread_init_thread)
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define _pthread_self() \
|
#define _pthread_self() \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user