]> git.sur5r.net Git - openldap/commitdiff
ITS#2820 fix pthread_create for Draft 4
authorHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 02:41:01 +0000 (02:41 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 02:41:01 +0000 (02:41 +0000)
libraries/libldap_r/thr_posix.c

index 825761e33035c9e237b695c977b8dd17fc746616..ed0c9425b846a3a43860a27bdb36dfde3cde9660 100644 (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