]> git.sur5r.net Git - openldap/commitdiff
MacOS 10.1 pthread_kill() workaround
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 Oct 2002 20:10:55 +0000 (20:10 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 Oct 2002 20:10:55 +0000 (20:10 +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