mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Add #ifdef for when sched_yield/sched.h is missing.
This commit is contained in:
parent
1d3df71e27
commit
58718e3bc6
@ -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 New Issue
Block a user