ITS#2820 fix pthread_create for Draft 4

This commit is contained in:
Howard Chu 2003-11-13 02:41:01 +00:00
parent 2d7481d662
commit fb493f5f3a

View File

@ -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