From 6b7ab142a7b47bca850b5361e3f6449931f55d8b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 10 Oct 2002 03:21:03 +0000 Subject: [PATCH] MacOSX fix --- libraries/libldap_r/thr_posix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5