summary refs log tree commit diff
path: root/elf/tst-tlsmod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tlsmod1.c')
-rw-r--r--elf/tst-tlsmod1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/tst-tlsmod1.c b/elf/tst-tlsmod1.c
index 3a632865f8..cca8df6549 100644
--- a/elf/tst-tlsmod1.c
+++ b/elf/tst-tlsmod1.c
@@ -4,10 +4,12 @@
 #include "tls-macros.h"
 
 
+#ifdef USE_TLS
 /* One define int variable, two externs.  */
 COMMON_INT_DEF(foo);
 VAR_INT_DEF(bar);
 VAR_INT_DECL(baz);
+#endif
 
 
 int