aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-11 10:08:57 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-11 10:08:57 -0700
commitc252ec15790cef36898948bed276ca0d810e2ed1 (patch)
treecec6b460f552d7b5fb53239db462279e480fc905 /nptl/pthread_create.c
parentfebb44a4cb4c83db022e33d5e6ef8f55e43e0687 (diff)
downloadglibc-c252ec15790cef36898948bed276ca0d810e2ed1.tar
glibc-c252ec15790cef36898948bed276ca0d810e2ed1.tar.gz
glibc-c252ec15790cef36898948bed276ca0d810e2ed1.tar.bz2
glibc-c252ec15790cef36898948bed276ca0d810e2ed1.zip
Check __PTHREAD_MUTEX_HAVE_PREV for mutex prev
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 09148852f9..3c1e4794c7 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -355,7 +355,7 @@ start_thread (void *arg)
#ifndef __ASSUME_SET_ROBUST_LIST
/* If this thread has any robust mutexes locked, handle them now. */
-# if __WORDSIZE == 64
+# ifdef __PTHREAD_MUTEX_HAVE_PREV
void *robust = pd->robust_head.list;
# else
__pthread_slist_t *robust = pd->robust_list.__next;