summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
diff options
context:
space:
mode:
authorovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-15 07:36:33 +0000
committerovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-15 07:36:33 +0000
commit53f5af15274c396e9c9622f0e57bd4c7bcea5641 (patch)
tree706d86cddd41f2d3ecbbaeb59e3da59436ed60b8 /gcc/gthr-posix.h
parentd0896cfe769309bddc285f81503868d3b715c8dc (diff)
downloadgcc-53f5af15274c396e9c9622f0e57bd4c7bcea5641.tar.gz
Conditionally include <sched.h>; include <config.h> from libobjc/.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35695 138bc75d-0d04-0410-961f-82ee72b054a4
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;