summaryrefslogtreecommitdiff
path: root/libpthread/include/pthread/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/include/pthread/pthread.h')
-rw-r--r--libpthread/include/pthread/pthread.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libpthread/include/pthread/pthread.h b/libpthread/include/pthread/pthread.h
index c6e056a..f7e4aae 100644
--- a/libpthread/include/pthread/pthread.h
+++ b/libpthread/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. */