From 58718e3bc609541b69dacee50895047ece917b4d Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Wed, 16 Sep 1998 02:41:38 +0000
Subject: [PATCH] Add #ifdef for when sched_yield/sched.h is missing.

---
 libraries/liblthread/thread.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libraries/liblthread/thread.c b/libraries/liblthread/thread.c
index 3cd5262386..12574d0606 100644
--- a/libraries/liblthread/thread.c
+++ b/libraries/liblthread/thread.c
@@ -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 */
-- 
GitLab