diff options
Diffstat (limited to 'include/pthread/pthread.h')
-rw-r--r-- | include/pthread/pthread.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index c6e056a..f7e4aae 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -311,8 +311,11 @@ extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr, #define PTHREAD_MUTEX_INITIALIZER __PTHREAD_MUTEX_INITIALIZER /* Static initializer for recursive mutexes. */ -#define PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP \ - __PTHREAD_MUTEX_RECURSIVE_INITIALIZER + +#ifdef __USE_GNU +# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \ + __PTHREAD_RECURSIVE_MUTEX_INITIALIZER +#endif /* Create a mutex with attributes given by ATTR and store it in *__MUTEX. */ |