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

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

parent 1d3df71e
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment