aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-tls2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls2.c')
-rw-r--r--elf/tst-tls2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/tst-tls2.c b/elf/tst-tls2.c
index 3d13272..4174899 100644
--- a/elf/tst-tls2.c
+++ b/elf/tst-tls2.c
@@ -3,18 +3,21 @@
#include <tls.h>
-#include "tls-macros.h"
+#ifdef USE_TLS
+# include "tls-macros.h"
/* Two 'int' variables in TLS. */
VAR_INT_DEF(foo);
VAR_INT_DEF(bar);
+#endif
#define TEST_FUNCTION do_test ()
static int
do_test (void)
{
+#ifdef USE_TLS
int result = 0;
int *ap, *bp;
@@ -79,6 +82,9 @@ do_test (void)
}
return result;
+#else
+ return 0;
+#endif
}