diff options
Diffstat (limited to 'gcc')
| -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 364473d..2bbcc35 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; |
