MacOS 10.1 pthread_kill() workaround

This commit is contained in:
Kurt Zeilenga 2002-10-02 20:10:55 +00:00
parent 491e75548c
commit 14ab87b54a

View file

@ -162,9 +162,10 @@ ldap_pvt_thread_join( ldap_pvt_thread_t thread, void **thread_return )
int
ldap_pvt_thread_kill( ldap_pvt_thread_t thread, int signo )
{
#if HAVE_PTHREADS > 6
#if ( HAVE_PTHREAD_KILL && HAVE_PTHREADS > 6 )
/* MacOS 10.1 is detected as v10 but has no pthread_kill() */
return pthread_kill( thread, signo );
#elif HAVE_PTHREADS > 4
#elif ( HAVE_PTHREAD_KILL && HAVE_PTHREADS > 4 )
if ( pthread_kill( thread, signo ) < 0 ) return errno;
return 0;
#else