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