File 0001-No-TLS.patch of Package python313
From 0d4be0b142889e707888abd95879cc6cc4a8416f Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Mon, 13 Oct 2025 16:45:22 +0200
Subject: [PATCH] No TLS
---
Include/internal/pycore_pystate.h | 2 +-
Python/pystate.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index b0e72523f58..fdcbd1432b9 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -113,7 +113,7 @@ _Py_ThreadCanHandleSignals(PyInterpreterState *interp)
and interpreter state */
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
-extern _Py_thread_local PyThreadState *_Py_tss_tstate;
+extern PyThreadState *_Py_tss_tstate;
#endif
#ifndef NDEBUG
diff --git a/Python/pystate.c b/Python/pystate.c
index 68207443532..49c9867216c 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -64,7 +64,7 @@ to avoid the expense of doing their own locking).
#ifdef HAVE_THREAD_LOCAL
-_Py_thread_local PyThreadState *_Py_tss_tstate = NULL;
+PyThreadState *_Py_tss_tstate = NULL;
#endif
static inline PyThreadState *
--
2.51.0