From: Kurt Zeilenga Date: Wed, 2 Oct 2002 20:10:55 +0000 (+0000) Subject: MacOS 10.1 pthread_kill() workaround X-Git-Tag: NO_SLAP_OP_BLOCKS~932 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14ab87b54af72b3e10479ca3b4aabb5d4db332f8;p=openldap MacOS 10.1 pthread_kill() workaround --- diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c index a328c1f33e..dfeb48f63f 100644 --- a/libraries/libldap_r/thr_posix.c +++ b/libraries/libldap_r/thr_posix.c @@ -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