From: Howard Chu Date: Thu, 13 Nov 2003 02:41:01 +0000 (+0000) Subject: ITS#2820 fix pthread_create for Draft 4 X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~450 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fb493f5f3a5f2caaccd34af4721ed9833632543b;p=openldap ITS#2820 fix pthread_create for Draft 4 --- diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c index 825761e330..ed0c9425b8 100644 --- a/libraries/libldap_r/thr_posix.c +++ b/libraries/libldap_r/thr_posix.c @@ -121,7 +121,12 @@ ldap_pvt_thread_create( ldap_pvt_thread_t * thread, pthread_attr_setdetachstate(&attr, detach); #endif #endif + +#if HAVE_PTHREADS < 5 + rtn = pthread_create( thread, attr, start_routine, arg ); +#else rtn = pthread_create( thread, &attr, start_routine, arg ); +#endif #if HAVE_PTHREADS > 5 pthread_attr_destroy(&attr); #else