summaryrefslogtreecommitdiff
path: root/elf/tst-tls8.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls8.c')
-rw-r--r--elf/tst-tls8.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/tst-tls8.c b/elf/tst-tls8.c
index 36b1baca63..ccc4e9f6fa 100644
--- a/elf/tst-tls8.c
+++ b/elf/tst-tls8.c
@@ -10,6 +10,7 @@
static int
do_test (void)
{
+#ifdef USE_TLS
static const char modname1[] = "$ORIGIN/tst-tlsmod3.so";
static const char modname2[] = "$ORIGIN/tst-tlsmod4.so";
int result = 0;
@@ -164,6 +165,9 @@ do_test (void)
}
return result;
+#else
+ return 0;
+#endif
}