Commit 58718e3b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

parent 1d3df71e
......@@ -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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment