diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2014-09-24 00:04:39 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2014-09-24 00:04:39 +0400 |
commit | 50620494c0c8e39ec3c09be9175c61304b6ab4c6 (patch) | |
tree | bbcc823bf7966459fbae31622682436a10b9ef2e | |
parent | 6927ee91a4ffee37d757777351b5eca81440b2ee (diff) | |
download | bdwgc-50620494c0c8e39ec3c09be9175c61304b6ab4c6.tar.gz |
Fix darwin_stop_world.c broken by 'thread_get_state fix' for other targets
* darwin_stop_world.c: Include Darwin-specific headers (sys/sysctl.h,
mach/machine.h) only if GC_DARWIN_THREADS.
-rw-r--r-- | darwin_stop_world.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c index a302f31b..a8c5e959 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -15,15 +15,15 @@ * modified is included with the above copyright notice. */ -#include <sys/sysctl.h> -#include <mach/machine.h> - #include "private/pthread_support.h" /* This probably needs more porting work to ppc64. */ #if defined(GC_DARWIN_THREADS) +#include <sys/sysctl.h> +#include <mach/machine.h> + /* From "Inside Mac OS X - Mach-O Runtime Architecture" published by Apple Page 49: "The space beneath the stack pointer, where a new stack frame would normally |