From: Kurt Zeilenga Date: Thu, 10 Oct 2002 03:21:03 +0000 (+0000) Subject: MacOSX fix X-Git-Tag: OPENLDAP_REL_ENG_2_1_6~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b7ab142a7b47bca850b5361e3f6449931f55d8b;p=openldap MacOSX fix --- 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