diff options
Diffstat (limited to 'csu')
-rw-r--r-- | csu/libc-tls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/csu/libc-tls.c b/csu/libc-tls.c index 5515204863..d83e69f625 100644 --- a/csu/libc-tls.c +++ b/csu/libc-tls.c @@ -24,6 +24,7 @@ #include <stdio.h> #include <sys/param.h> #include <array_length.h> +#include <pthreadP.h> #ifdef SHARED #error makefile bug, this file is for static only @@ -89,7 +90,7 @@ init_static_tls (size_t memsz, size_t align) { /* That is the size of the TLS memory for this object. */ GL(dl_tls_static_size) = roundup (memsz + GLRO(dl_tls_static_surplus), - TLS_TCB_ALIGN); + TCB_ALIGNMENT); #if TLS_TCB_AT_TP GL(dl_tls_static_size) += TLS_TCB_SIZE; #endif @@ -214,5 +215,5 @@ __libc_setup_tls (void) memsz += tcb_offset; #endif - init_static_tls (memsz, MAX (TLS_TCB_ALIGN, max_align)); + init_static_tls (memsz, MAX (TCB_ALIGNMENT, max_align)); } |