From: Kurt Zeilenga Date: Thu, 6 Jul 2000 17:21:21 +0000 (+0000) Subject: Fix get/set conconcurrency routines under Solaris X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2468 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=821f0e17f221375c671e80aab4f4b5c90ae1985d;p=openldap Fix get/set conconcurrency routines under Solaris --- diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c index 3d0bba9f93..c1cadb8825 100644 --- a/libraries/libldap_r/thr_posix.c +++ b/libraries/libldap_r/thr_posix.c @@ -48,28 +48,28 @@ ldap_int_thread_destroy( void ) return 0; } -#ifdef HAVE_PTHREAD_SETCONCURRENCY +#ifdef LDAP_THREAD_HAVE_SETCONCURRENCY int ldap_pvt_thread_set_concurrency(int n) { #ifdef HAVE_PTHREAD_SETCONCURRENCY return pthread_setconcurrency( n ); #elif HAVE_THR_SETCONCURRENCY - return pthread_setconcurrency( n ); + return thr_setconcurrency( n ); #else return 0; #endif } #endif -#ifdef HAVE_PTHREAD_GETCONCURRENCY +#ifdef LDAP_THREAD_HAVE_GETCONCURRENCY int ldap_pvt_thread_get_concurrency(void) { #ifdef HAVE_PTHREAD_GETCONCURRENCY return pthread_getconcurrency(); #elif HAVE_THR_GETCONCURRENCY - return pthread_getconcurrency(); + return thr_getconcurrency(); #else return 0; #endif