aboutsummaryrefslogtreecommitdiff
path: root/locale/localeinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'locale/localeinfo.h')
-rw-r--r--locale/localeinfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/locale/localeinfo.h b/locale/localeinfo.h
index 5c1f27f..4f746a2 100644
--- a/locale/localeinfo.h
+++ b/locale/localeinfo.h
@@ -215,7 +215,9 @@ __libc_tsd_define (extern, LOCALE)
we can use __thread variables. So only in that case do we attempt this. */
#if !defined SHARED && defined HAVE___THREAD && defined HAVE_WEAK_SYMBOLS
# include <tls.h>
-# define NL_CURRENT_INDIRECT 1
+# if USE_TLS
+# define NL_CURRENT_INDIRECT 1
+# endif
#endif
#ifdef NL_CURRENT_INDIRECT