From fb493f5f3a5f2caaccd34af4721ed9833632543b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 13 Nov 2003 02:41:01 +0000 Subject: [PATCH] ITS#2820 fix pthread_create for Draft 4 --- libraries/libldap_r/thr_posix.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5