From: GNU Libc Maintainers Date: Sat, 10 Sep 2022 22:05:13 +0000 (+0100) Subject: git-thrd_current X-Git-Tag: archive/raspbian/2.34-8+rpi1^2~79 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=30a66b967e3fec1ae68c17f050cba738468e1d4a;p=glibc.git git-thrd_current =================================================================== Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-thrd_current.diff --- diff --git a/sysdeps/htl/thrd_current.c b/sysdeps/htl/thrd_current.c index eecb86af8..dbd318cb4 100644 --- a/sysdeps/htl/thrd_current.c +++ b/sysdeps/htl/thrd_current.c @@ -24,7 +24,7 @@ thrd_t thrd_current (void) { - if (__pthread_threads) + if (&__pthread_threads && __pthread_threads) return (thrd_t) __pthread_self (); return (thrd_t) 0;