summary refs log tree commit diff
path: root/elf/tst-tlsmod13a.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tlsmod13a.c')
-rw-r--r--elf/tst-tlsmod13a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/tst-tlsmod13a.c b/elf/tst-tlsmod13a.c
index 70a02131ee..14b12b032b 100644
--- a/elf/tst-tlsmod13a.c
+++ b/elf/tst-tlsmod13a.c
@@ -1,6 +1,7 @@
 #include <tls.h>
 
-#if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
+#if defined USE_TLS && defined HAVE___THREAD \
+    && defined HAVE_TLS_MODEL_ATTRIBUTE
 __thread int b[2] __attribute__ ((tls_model ("initial-exec")));
 #else
 int b[2];