diff options
author | Ovidiu Predescu <ovidiu@gcc.gnu.org> | 2000-08-10 07:11:02 +0000 |
---|---|---|
committer | Ovidiu Predescu <ovidiu@gcc.gnu.org> | 2000-08-10 07:11:02 +0000 |
commit | 1a46ef5eec490cef0e68047b515d5283aefa3c9d (patch) | |
tree | d88c55ce5d24cb81771e1fb56783fa69fff2883e /gcc/gthr-posix.h | |
parent | c3d80041a3c3f1caa403cc6d9000b2ed10f7dedf (diff) | |
download | gcc-1a46ef5eec490cef0e68047b515d5283aefa3c9d.tar.gz |
Include auto-host.h. Conditionally include <sched.h>.
From-SVN: r35599
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r-- | gcc/gthr-posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 364473dbdae..2bbcc35a9f1 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -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; |