From bbde852717f9db0b39190ab5774204522569239b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 17 Jun 2003 08:58:31 +0000 Subject: Update. 2003-06-17 Ulrich Drepper * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before returning because seconds==0. --- nptl/allocatestack.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nptl/allocatestack.c') diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index bfa5ea1..48a4720 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -321,10 +321,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, stack cache nor will the memory (except the TLS memory) be freed. */ pd->user_stack = true; -#ifdef TLS_MULTIPLE_THREADS_IN_TCB /* This is at least the second thread. */ pd->header.multiple_threads = 1; -#else +#ifndef TLS_MULTIPLE_THREADS_IN_TCB __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif @@ -454,10 +453,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, pd->lock = LLL_LOCK_INITIALIZER; #endif -#ifdef TLS_MULTIPLE_THREADS_IN_TCB /* This is at least the second thread. */ pd->header.multiple_threads = 1; -#else +#ifndef TLS_MULTIPLE_THREADS_IN_TCB __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif -- cgit v1.1