Check __PTHREAD_MUTEX_HAVE_PREV for mutex initializers

This commit is contained in:
H.J. Lu 2012-05-11 10:10:37 -07:00
parent c252ec1579
commit 1f59b0b121
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER): Check
__PTHREAD_MUTEX_HAVE_PREV instead of __WORDSIZE.
(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Likewise.
(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
* pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV

View File

@ -83,7 +83,7 @@ enum
/* Mutex initializers. */
#if __WORDSIZE == 64
#ifdef __PTHREAD_MUTEX_HAVE_PREV
# define PTHREAD_MUTEX_INITIALIZER \
{ { 0, 0, 0, 0, 0, 0, { 0, 0 } } }
# ifdef __USE_GNU