Skip to content
Snippets Groups Projects
Commit 821f0e17 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix get/set conconcurrency routines under Solaris

parent 4f4f59f3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment