* allocatestack.c (allocate_stack): Make code compile if
authorUlrich Drepper <drepper@redhat.com>
Sun, 17 Jun 2007 16:43:57 +0000 (16:43 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 17 Jun 2007 16:43:57 +0000 (16:43 +0000)
__ASSUME_PRIVATE_FUTEX is set.

nptl/ChangeLog
nptl/allocatestack.c

index d1375ee..06fb1d9 100644 (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>
 
        * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
index 76d75fe..145fe0a 100644 (file)
@@ -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.  */