about summary refs log tree commit diff
path: root/elf/tst-tls9.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls9.c')
-rw-r--r--elf/tst-tls9.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/tst-tls9.c b/elf/tst-tls9.c
index 12078518fa..e317696dfc 100644
--- a/elf/tst-tls9.c
+++ b/elf/tst-tls9.c
@@ -9,6 +9,7 @@
 static int
 do_test (void)
 {
+#ifdef USE_TLS
   static const char modname1[] = "tst-tlsmod5.so";
   static const char modname2[] = "tst-tlsmod6.so";
   int result = 0;
@@ -32,6 +33,9 @@ do_test (void)
     dlclose (h2);
 
   return result;
+#else
+  return 0;
+#endif
 }