1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

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.
This commit is contained in:
Daniel Llorens 2022-12-21 07:58:37 +01:00
parent 3bdcc3668f
commit f859e0f58b

View file

@ -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 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 possible since thread objects may live longer than the actual thread they
represent. */ 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 */ #endif /* SCM_HAVE_THREAD_STORAGE_CLASS */