summaryrefslogtreecommitdiff
path: root/nptl/tst-tls2.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-tls2.c
parent85047fe3b9a57c0de50692791b4c6f6301a49d1d (diff)
* Makeconfig (+includes): Don't use $(last-includes).
Diffstat (limited to 'nptl/tst-tls2.c')
-rw-r--r--nptl/tst-tls2.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/nptl/tst-tls2.c b/nptl/tst-tls2.c
index 8b0692670e..1d8ea14a88 100644
--- a/nptl/tst-tls2.c
+++ b/nptl/tst-tls2.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <unistd.h>
+#if HAVE___THREAD
#define N 10
static pthread_t th[N];
@@ -105,11 +106,18 @@ 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 (pthread_barrier_init (&b, NULL, N + 1) != 0)
{
puts ("barrier_init failed");
@@ -179,6 +187,7 @@ do_test (void)
}
return 0;
+#endif
}