From dd6904541f6586616a6783388f18be0447e4dcb2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 17 Dec 2014 14:33:28 -0800 Subject: NPTL: Move fork state variables to initializer files. --- nptl/libc_pthread_init.c | 3 +++ nptl/register-atfork.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'nptl') diff --git a/nptl/libc_pthread_init.c b/nptl/libc_pthread_init.c index 4d8d710cca..2bedf86300 100644 --- a/nptl/libc_pthread_init.c +++ b/nptl/libc_pthread_init.c @@ -28,6 +28,9 @@ #include +unsigned long int *__fork_generation_pointer; + + #ifdef TLS_MULTIPLE_THREADS_IN_TCB void #else diff --git a/nptl/register-atfork.c b/nptl/register-atfork.c index 2cc49540b9..d79f643864 100644 --- a/nptl/register-atfork.c +++ b/nptl/register-atfork.c @@ -23,6 +23,8 @@ #include +struct fork_handler *__fork_handlers; + /* Lock to protect allocation and deallocation of fork handlers. */ int __fork_lock = LLL_LOCK_INITIALIZER; -- cgit v1.2.3