From: Ulrich Drepper Date: Sun, 17 Jun 2007 16:43:57 +0000 (+0000) Subject: * allocatestack.c (allocate_stack): Make code compile if X-Git-Tag: cvs/glibc-2_6_1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4201cc4ba8f499d047f6afba0126cfbf68b7d0b;p=thirdparty%2Fglibc.git * allocatestack.c (allocate_stack): Make code compile if __ASSUME_PRIVATE_FUTEX is set. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index d1375ee9efd..06fb1d991fb 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2007-06-17 Ulrich Drepper + + * allocatestack.c (allocate_stack): Make code compile if + __ASSUME_PRIVATE_FUTEX is set. + 2007-06-17 Kaz Kojima * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 76d75fef2c1..145fe0a35ff 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -516,9 +516,11 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif +#ifndef __ASSUME_PRIVATE_FUTEX /* The thread must know when private futexes are supported. */ pd->header.private_futex = THREAD_GETMEM (THREAD_SELF, header.private_futex); +#endif #ifdef NEED_DL_SYSINFO /* Copy the sysinfo value from the parent. */