summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
diff options
context:
space:
mode:
authorOvidiu Predescu <ovidiu@gcc.gnu.org>2000-08-15 07:36:33 +0000
committerOvidiu Predescu <ovidiu@gcc.gnu.org>2000-08-15 07:36:33 +0000
commit5f974826dc25c2411c502f6292a0f12eb2e85da9 (patch)
tree706d86cddd41f2d3ecbbaeb59e3da59436ed60b8 /gcc/gthr-posix.h
parentd04703d6d701b2a22b11d94c6fbfa2c44a522092 (diff)
downloadgcc-5f974826dc25c2411c502f6292a0f12eb2e85da9.tar.gz
Conditionally include <sched.h>; include <config.h> from libobjc/.
From-SVN: r35695
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r--gcc/gthr-posix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h
index 364473dbdae..7b92316055a 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;