mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#2820 fix pthread_create for Draft 4
This commit is contained in:
parent
2d7481d662
commit
fb493f5f3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user