Really disable pthread rw locks

This commit is contained in:
Kurt Zeilenga 2000-06-08 00:29:32 +00:00
parent e8b360eefd
commit e68b429d45
2 changed files with 3 additions and 1 deletions

View file

@ -49,7 +49,7 @@ typedef pthread_cond_t ldap_int_thread_cond_t;
#define HAVE_SETCONCURRENCY 1
#endif
#if defined( HAVE_PTHREAD_RWLOCK_DESTROY )
#if 0 && defined( HAVE_PTHREAD_RWLOCK_DESTROY )
#define LDAP_THREAD_HAVE_RDWR 1
typedef pthread_rwlock_t ldap_pvt_thread_rdwr_t;
#endif

View file

@ -218,6 +218,7 @@ ldap_int_thread_mutex_unlock( ldap_int_thread_mutex_t *mutex )
return pthread_mutex_unlock( mutex );
}
#ifdef LDAP_THREAD_HAVE_RDWR
#ifdef HAVE_PTHREAD_RWLOCK_DESTROY
int
ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rw )
@ -261,6 +262,7 @@ int ldap_pvt_thread_rdwr_wunlock( ldap_pvt_thread_rdwr_t *rw )
return pthread_rwlock_unlock( rw );
}
#endif /* HAVE_PTHREAD_RDLOCK_DESTROY */
#endif /* LDAP_THREAD_HAVE_RDWR */
#endif /* HAVE_PTHREADS */