]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/src/internal/pthread_impl.h
threads: implement init of TLS and stack pointer (#342)
[wasi-libc.git] / libc-top-half / musl / src / internal / pthread_impl.h
index 22e557d580095cd1520ede709aacbb86f4ab1c74..a6d188bb3cfbbdcc1f91dba26edd6cb44dbb3ad9 100644 (file)
@@ -25,8 +25,10 @@ struct pthread {
        /* Part 1 -- these fields may be external or
         * internal (accessed via asm) ABI. Do not change. */
        struct pthread *self;
+#ifdef __wasilibc_unmodified_upstream
 #ifndef TLS_ABOVE_TP
        uintptr_t *dtv;
+#endif
 #endif
        struct pthread *prev, *next; /* non-ABI */
        uintptr_t sysinfo;