* allocatestack.c (allocate_stack): Make code compile if

__ASSUME_PRIVATE_FUTEX is set.
This commit is contained in:
Ulrich Drepper 2007-06-17 16:43:57 +00:00
parent 339dbf0e39
commit d4201cc4ba
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-06-17 Ulrich Drepper <drepper@redhat.com>
* allocatestack.c (allocate_stack): Make code compile if
__ASSUME_PRIVATE_FUTEX is set.
2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:

View File

@ -516,9 +516,11 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
__pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1;
#endif #endif
#ifndef __ASSUME_PRIVATE_FUTEX
/* The thread must know when private futexes are supported. */ /* The thread must know when private futexes are supported. */
pd->header.private_futex = THREAD_GETMEM (THREAD_SELF, pd->header.private_futex = THREAD_GETMEM (THREAD_SELF,
header.private_futex); header.private_futex);
#endif
#ifdef NEED_DL_SYSINFO #ifdef NEED_DL_SYSINFO
/* Copy the sysinfo value from the parent. */ /* Copy the sysinfo value from the parent. */