diff options
Diffstat (limited to 'test/nptl/tst-tls2.c')
-rw-r--r-- | test/nptl/tst-tls2.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/nptl/tst-tls2.c b/test/nptl/tst-tls2.c index f60f4a5..eb6d8a3 100644 --- a/test/nptl/tst-tls2.c +++ b/test/nptl/tst-tls2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003, 2004 Free Software Foundation, Inc. +/* Copyright (C) 2003-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2003. @@ -23,9 +23,7 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <tls.h> -#if HAVE___THREAD #define N 10 static pthread_t th[N]; @@ -106,18 +104,11 @@ 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"); @@ -207,7 +198,6 @@ do_test (void) } return 0; -#endif } |