X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblthread%2Fthread.c;h=d0a62d5a815e0c8ae15a51edc13eb9d82f81fb32;hb=2753c5176ac4778e8702f48e638b7b7096cacdb8;hp=12574d0606d50eb5b80f119bac649d904ec739b8;hpb=3e20891263f4d1dc36eb7172ec8ded5abea498ac;p=openldap diff --git a/libraries/liblthread/thread.c b/libraries/liblthread/thread.c index 12574d0606..d0a62d5a81 100644 --- a/libraries/liblthread/thread.c +++ b/libraries/liblthread/thread.c @@ -491,14 +491,17 @@ pthread_kill( pthread_t tid, int sig ) #if defined ( POSIX_THREADS ) -#ifndef SCHED_YIELD_MISSING +#ifdef HAVE_SCHED_YIELD +#ifdef HAVE_SCHED_H #include +#endif /* HAVE_SCHED_H */ +/* POSIX Threads (final) does have a pthread_yield function */ void pthread_yield( void ) { sched_yield(); } -#endif +#endif /* HAVE_SCHED_YIELD */ #endif /* posix threads */ #endif /* dce pthreads */