summaryrefslogtreecommitdiff
path: root/nptl/tst-tls3mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-tls3mod.c')
-rw-r--r--nptl/tst-tls3mod.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/tst-tls3mod.c b/nptl/tst-tls3mod.c
index 646f5b322b..4cb96452e2 100644
--- a/nptl/tst-tls3mod.c
+++ b/nptl/tst-tls3mod.c
@@ -20,10 +20,11 @@
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-
+#include <pthreaddef.h>
#if HAVE___THREAD
@@ -61,6 +62,12 @@ handler (int sig)
void *
tf (void *arg)
{
+ if ((uintptr_t) pthread_self () & (TCB_ALIGNMENT - 1))
+ {
+ puts ("thread's struct pthread not aligned enough");
+ exit (1);
+ }
+
if (fp != NULL)
{
puts ("fp not initially NULL");