git-pthread_self.2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 23 Jul 2024 17:09:58 +0000 (19:09 +0200)
committerAurelien Jarno <aurel32@debian.org>
Tue, 23 Jul 2024 17:09:58 +0000 (19:09 +0200)
commit 6ed76f4efc856431cd8511ef881a494a13280653
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Jul 17 14:56:14 2024 +0200

    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.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_self.2.diff

sysdeps/mach/hurd/htl/pt-pthread_self.c
sysdeps/mach/hurd/htl/pt-sysdep.h

index 08ef2e4956d52fd9912263dd67d2ba47fa955f1b..d11d0ec676259bd6d7a4e5fab4dfafeac32136e3 100644 (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)
index ef7f5096118471d0fe21b7f2378a156d45445172..8e94395be7d031507dba0baec3aee7b45d180dfc 100644 (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()                                            \