]> git.sur5r.net Git - openldap/commitdiff
Add #ifdef for when sched_yield/sched.h is missing.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 02:41:38 +0000 (02:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 02:41:38 +0000 (02:41 +0000)
libraries/liblthread/thread.c

index 3cd526238664a8a8eae03fb31729a0f7b99f4a87..12574d0606d50eb5b80f119bac649d904ec739b8 100644 (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 */