summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Llorens <lloda@sarc.name>2022-12-21 07:58:37 +0100
committerDaniel Llorens <lloda@sarc.name>2022-12-21 07:58:37 +0100
commitf859e0f58b211eedcb0dce4f2382cfebf37010d7 (patch)
treeb9ce06f8a88d95a06c61c68a8b18db18b372a0aa
parent3bdcc3668fd8f9a5b6c9a313ff8d70acb32b2a52 (diff)
downloadguile-f859e0f58b211eedcb0dce4f2382cfebf37010d7.tar.gz
Patch for bug #60234
See https://debbugs.gnu.org/60234. gcc warns about the extra extern, but we get rid of the tls model mismatch error.
-rw-r--r--libguile/threads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/threads.c b/libguile/threads.c
index 0f5cf2ed5..3f40f5d69 100644
--- a/libguile/threads.c
+++ b/libguile/threads.c
@@ -354,7 +354,8 @@ scm_i_pthread_key_t scm_i_thread_key;
itself in TLS (rather than a pointer to some malloc'd memory) is not
possible since thread objects may live longer than the actual thread they
represent. */
-SCM_THREAD_LOCAL scm_thread *scm_i_current_thread = NULL;
+/* SCM_INTERNAL fixes https://debbugs.gnu.org/60234 */
+SCM_INTERNAL SCM_THREAD_LOCAL scm_thread *scm_i_current_thread = NULL;
#endif /* SCM_HAVE_THREAD_STORAGE_CLASS */