summary refs log tree commit diff
path: root/elf/tst-tls6.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls6.c')
-rw-r--r--elf/tst-tls6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/tst-tls6.c b/elf/tst-tls6.c
index 021622d9c7..68d706538f 100644
--- a/elf/tst-tls6.c
+++ b/elf/tst-tls6.c
@@ -10,6 +10,7 @@
 static int
 do_test (void)
 {
+#ifdef USE_TLS
   static const char modname[] = "tst-tlsmod2.so";
   int result = 0;
   int *foop;
@@ -80,6 +81,9 @@ do_test (void)
     }
 
   return result;
+#else
+  return 0;
+#endif
 }