Skip to content
Snippets Groups Projects
Commit 14ab87b5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

MacOS 10.1 pthread_kill() workaround

parent 491e7554
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment