Skip to content

Commit

Permalink
* allocatestack.c (allocate_stack): Make code compile if
Browse files Browse the repository at this point in the history
	__ASSUME_PRIVATE_FUTEX is set.
  • Loading branch information
Ulrich Drepper committed Jun 17, 2007
1 parent 339dbf0 commit d4201cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
Expand Down
2 changes: 2 additions & 0 deletions nptl/allocatestack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit d4201cc

Please sign in to comment.