diff options
author | neal <neal> | 2008-08-12 13:31:49 +0000 |
---|---|---|
committer | neal <neal> | 2008-08-12 13:31:49 +0000 |
commit | 25ebe37ca15e4c6d03706f379b57cad303ccd255 (patch) | |
tree | 9a5aeb79de15a70bbfbe0bd7c8a52980741116bd /libpthread/include/pthread/pthread.h | |
parent | f3f4fc9bc7c320739f617f040f9c78dd5495ab85 (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 'libpthread/include/pthread/pthread.h')
-rw-r--r-- | libpthread/include/pthread/pthread.h | 7 |
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. */ |