]> git.sur5r.net Git - openldap/commitdiff
MacOSX fix
authorKurt Zeilenga <kurt@openldap.org>
Thu, 10 Oct 2002 03:21:03 +0000 (03:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 10 Oct 2002 03:21:03 +0000 (03:21 +0000)
libraries/libldap_r/thr_posix.c

index a328c1f33e3b618347290da20c57ce1e93908827..dfeb48f63f09266b68899f36bc30930b733390a5 100644 (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