diff options
Diffstat (limited to 'nptl/tst-tls3.c')
-rw-r--r-- | nptl/tst-tls3.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nptl/tst-tls3.c b/nptl/tst-tls3.c index a34862e58c..4e7ca8e231 100644 --- a/nptl/tst-tls3.c +++ b/nptl/tst-tls3.c @@ -72,6 +72,13 @@ int nsigs; 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"); @@ -172,6 +179,7 @@ do_test (void) } return 0; +#endif } |