about summary refs log tree commit diff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-17 08:58:31 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-17 08:58:31 +0000
commitbbde852717f9db0b39190ab5774204522569239b (patch)
treefed5fa0d3f6d466fab513f87ee3338d5149519d4 /nptl/allocatestack.c
parent2667645020a4322a2730e340302748f1b0c1a1ce (diff)
downloadglibc-bbde852717f9db0b39190ab5774204522569239b.tar.gz
glibc-bbde852717f9db0b39190ab5774204522569239b.tar.xz
glibc-bbde852717f9db0b39190ab5774204522569239b.zip
Update.
2003-06-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
	returning because seconds==0.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index bfa5ea1160..48a47205f8 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