summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-29 04:56:15 +0000
committermidipix <writeonce@midipix.org>2024-01-29 04:56:15 +0000
commitabd66e56b3c0fd209dc225149c50acf46c3e1677 (patch)
treec04250267290cfe46970f6b3b396cc1f19a806b9 /arch/nt64
parentd4fc6843d32582278d2e0e3d026fbc06504eecae (diff)
downloadmmglue-abd66e56b3c0fd209dc225149c50acf46c3e1677.tar.bz2
mmglue-abd66e56b3c0fd209dc225149c50acf46c3e1677.tar.xz
nt32|nt64: pthread_arch.h: adjust code to match musl-1.2.2 and later
[while maintaining compatibility with older musl versions] [cf. musl commit 3a5b9ae7cf656648c80fe155a5239d9b4fb4c485]
Diffstat (limited to 'arch/nt64')
-rw-r--r--arch/nt64/pthread_arch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/nt64/pthread_arch.h b/arch/nt64/pthread_arch.h
index 05188f3..c99da3a 100644
--- a/arch/nt64/pthread_arch.h
+++ b/arch/nt64/pthread_arch.h
@@ -62,7 +62,11 @@ static inline struct pthread ** __psx_tlca(void)
}
+#ifdef __MUSL_PRE___GET_TP
static inline struct pthread * __pthread_self(void)
+#else
+static inline struct pthread * __get_tp(void)
+#endif
{
struct pthread ** ptlca;