From 5f974826dc25c2411c502f6292a0f12eb2e85da9 Mon Sep 17 00:00:00 2001
From: Ovidiu Predescu <ovidiu@gcc.gnu.org>
Date: Tue, 15 Aug 2000 07:36:33 +0000
Subject: [PATCH] Conditionally include <sched.h>; include <config.h> from
 libobjc/.

From-SVN: r35695
---
 gcc/gthr-posix.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h
index 364473dbdaee..7b92316055af 100644
--- a/gcc/gthr-posix.h
+++ b/gcc/gthr-posix.h
@@ -90,6 +90,13 @@ __gthread_active_p (void)
 
 #ifdef _LIBOBJC
 
+/* This is the config.h file in libobjc/ */
+#include <config.h>
+
+#ifdef HAVE_SCHED_H
+# include <sched.h>
+#endif
+
 /* Key structure for maintaining thread specific storage */
 static pthread_key_t _objc_thread_storage;
 static pthread_attr_t _objc_thread_attribs;
-- 
GitLab