aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-tls1.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-23 11:17:28 +0000
committerRoland McGrath <roland@gnu.org>2003-03-23 11:17:28 +0000
commit3045a1fe8969d56d1c2b1dbbe75a0a821b27c356 (patch)
tree8ec447bbab7e822641dfc61deed2090d2a3543fd /nptl/tst-tls1.c
parent85047fe3b9a57c0de50692791b4c6f6301a49d1d (diff)
downloadglibc-3045a1fe8969d56d1c2b1dbbe75a0a821b27c356.tar
glibc-3045a1fe8969d56d1c2b1dbbe75a0a821b27c356.tar.gz
glibc-3045a1fe8969d56d1c2b1dbbe75a0a821b27c356.tar.bz2
glibc-3045a1fe8969d56d1c2b1dbbe75a0a821b27c356.zip
* Makeconfig (+includes): Don't use $(last-includes).
Diffstat (limited to 'nptl/tst-tls1.c')
-rw-r--r--nptl/tst-tls1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nptl/tst-tls1.c b/nptl/tst-tls1.c
index 86b3e6eb16..36681629e3 100644
--- a/nptl/tst-tls1.c
+++ b/nptl/tst-tls1.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
+#if HAVE___THREAD
struct test_s
{
int a;
@@ -51,11 +52,19 @@ tf (void *arg)
return NULL;
}
+#endif
int
do_test (void)
{
+#if !HAVE___THREAD
+
+ puts ("No __thread support in compiler, test skipped.");
+
+ return 0;
+#else
+
if (s.a != INIT_A || s.b != INIT_B)
{
puts ("initial value of s in main thread wrong");
@@ -85,6 +94,7 @@ do_test (void)
}
return 0;
+#endif
}