Check __PTHREAD_MUTEX_HAVE_PREV for mutex initializers
This commit is contained in:
parent
c252ec1579
commit
1f59b0b121
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user