* gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
From-SVN: r89805
+2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
+ with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
+
2004-10-28 Daniel Berlin <dberlin@dberlin.org>
* tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER
#elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
-#else
+#elif defined(PTHREAD_MUTEX_RECURSIVE)
#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION __gthread_recursive_mutex_init_function
+#else
+#define __GTHREAD_RECURSIVE_MUTEX_INIT RECURSIVE_ERRORCHECKMUTEX
#endif
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK
return 0;
}
-#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
+#if !defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) && defined(PTHREAD_MUTEX_RECURSIVE)
static inline int
__gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
{