about summary refs log tree commit diff
path: root/elf/tst-tls7.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls7.c')
-rw-r--r--elf/tst-tls7.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/tst-tls7.c b/elf/tst-tls7.c
index 1edc2b6356..37f1a63e16 100644
--- a/elf/tst-tls7.c
+++ b/elf/tst-tls7.c
@@ -10,6 +10,7 @@
 static int
 do_test (void)
 {
+#ifdef USE_TLS
   static const char modname[] = "tst-tlsmod3.so";
   int result = 0;
   int (*fp) (void);
@@ -51,6 +52,9 @@ do_test (void)
     }
 
   return result;
+#else
+  return 0;
+#endif
 }