summaryrefslogtreecommitdiff
path: root/elf/tst-tls4.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls4.c')
-rw-r--r--elf/tst-tls4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/tst-tls4.c b/elf/tst-tls4.c
index 4ae33db24d..f92ee53ce5 100644
--- a/elf/tst-tls4.c
+++ b/elf/tst-tls4.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;
@@ -46,6 +47,9 @@ do_test (void)
dlclose (h);
return result;
+#else
+ return 0;
+#endif
}