mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
Add #ifdef for when sched_yield/sched.h is missing.
This commit is contained in:
parent
1d3df71e27
commit
58718e3bc6
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue