Include auto-host.h. Conditionally include <sched.h>.
authorOvidiu Predescu <ovidiu@gcc.gnu.org>
Thu, 10 Aug 2000 07:11:02 +0000 (07:11 +0000)
committerOvidiu Predescu <ovidiu@gcc.gnu.org>
Thu, 10 Aug 2000 07:11:02 +0000 (07:11 +0000)
From-SVN: r35599

gcc/gthr-posix.h

index 364473dbdaeefb603b7880a2172cb7e16776e0ad..2bbcc35a9f19584fbc83fcc276943033bbab59f8 100644 (file)
@@ -90,6 +90,12 @@ __gthread_active_p (void)
 
 #ifdef _LIBOBJC
 
+#include <auto-host.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;