summaryrefslogtreecommitdiff
path: root/include/pthread/pthread.h
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-08-12 13:31:49 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-07 23:38:31 +0200
commit0519673768de7ce1d212af093974bbaaef3e74d3 (patch)
treeb17fe2db2aac8c83a7120ccacff31e4b89b3c887 /include/pthread/pthread.h
parentf214670f86b9355183e2478dd1827474f60439b8 (diff)
libpthread/
2008-08-12 Neal H. Walfield <neal@gnu.org> * sysdeps/generic/bits/mutex.h (__PTHREAD_RECURSIVE_MUTEX_INITIALIZER): Define. (__PTHREAD_MUTEX_RECURSIVE_INITIALIZER): Don't define. * include/pthread/pthread.h (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) [__USE_GNU]: Define. (PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP): Don't define. libhurd-mm/ 2008-08-12 Neal H. Walfield <neal@gnu.org> * storage.c (storage_low_mutex): Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, not PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP.
Diffstat (limited to 'include/pthread/pthread.h')
-rw-r--r--include/pthread/pthread.h7
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. */