diff options
Diffstat (limited to 'nptl/init.c')
-rw-r--r-- | nptl/init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nptl/init.c b/nptl/init.c index 80bb73d991..8ee3df1fa3 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -260,8 +260,11 @@ __pthread_initialize_minimal_internal (void) #endif /* Register the fork generation counter with the libc. */ - __libc_pthread_init (&__fork_generation, __reclaim_stacks, - ptr_pthread_functions); +#ifndef TLS_MULTIPLE_THREADS_IN_TCB + __libc_multiple_threads_ptr = +#endif + __libc_pthread_init (&__fork_generation, __reclaim_stacks, + ptr_pthread_functions); } strong_alias (__pthread_initialize_minimal_internal, __pthread_initialize_minimal) |