From: Kurt Zeilenga Date: Wed, 16 Sep 1998 02:41:38 +0000 (+0000) Subject: Add #ifdef for when sched_yield/sched.h is missing. X-Git-Tag: PHP3_TOOL_0_0~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58718e3bc609541b69dacee50895047ece917b4d;p=openldap Add #ifdef for when sched_yield/sched.h is missing. --- diff --git a/libraries/liblthread/thread.c b/libraries/liblthread/thread.c index 3cd5262386..12574d0606 100644 --- a/libraries/liblthread/thread.c +++ b/libraries/liblthread/thread.c @@ -491,12 +491,14 @@ pthread_kill( pthread_t tid, int sig ) #if defined ( POSIX_THREADS ) +#ifndef SCHED_YIELD_MISSING #include void pthread_yield( void ) { sched_yield(); } +#endif #endif /* posix threads */ #endif /* dce pthreads */