about summary refs log tree commit diff
path: root/elf/tst-tlsmod14a.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tlsmod14a.c')
-rw-r--r--elf/tst-tlsmod14a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/tst-tlsmod14a.c b/elf/tst-tlsmod14a.c
index 4843e5937e..0bb393d9c5 100644
--- a/elf/tst-tlsmod14a.c
+++ b/elf/tst-tlsmod14a.c
@@ -1,6 +1,9 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#include <tls.h>
+
+#if USE_TLS && HAVE___THREAD
 
 #define AL 4096
 struct foo
@@ -34,3 +37,5 @@ FCT (void)
 
   return result;
 }
+
+#endif