diff options
Diffstat (limited to 'nptl/tst-tls3.c')
-rw-r--r-- | nptl/tst-tls3.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/tst-tls3.c b/nptl/tst-tls3.c index 4e7ca8e231..20ee3e30c2 100644 --- a/nptl/tst-tls3.c +++ b/nptl/tst-tls3.c @@ -22,10 +22,11 @@ #include <pthread.h> #include <signal.h> #include <semaphore.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> - +#include <pthreaddef.h> #define THE_SIG SIGUSR1 @@ -79,6 +80,12 @@ do_test (void) return 0; #else + if ((uintptr_t) pthread_self () & (TCB_ALIGNMENT - 1)) + { + puts ("initial thread's struct pthread not aligned enough"); + exit (1); + } + if (pthread_barrier_init (&b, NULL, N + 1) != 0) { puts ("barrier_init failed"); |