Add #ifdef for when sched_yield/sched.h is missing.

This commit is contained in:
Kurt Zeilenga 1998-09-16 02:41:38 +00:00
parent 1d3df71e27
commit 58718e3bc6

View File

@ -491,12 +491,14 @@ pthread_kill( pthread_t tid, int sig )
#if defined ( POSIX_THREADS )
#ifndef SCHED_YIELD_MISSING
#include <sched.h>
void pthread_yield( void )
{
sched_yield();
}
#endif
#endif /* posix threads */
#endif /* dce pthreads */