]> granicus.if.org Git - gc/commitdiff
Fix darwin_stop_world.c broken by 'thread_get_state fix' for other targets
authorIvan Maidanski <ivmai@mail.ru>
Tue, 23 Sep 2014 20:04:39 +0000 (00:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 23 Sep 2014 20:04:39 +0000 (00:04 +0400)
* darwin_stop_world.c: Include Darwin-specific headers (sys/sysctl.h,
mach/machine.h) only if GC_DARWIN_THREADS.

darwin_stop_world.c

index a302f31b1401ba58ca7e611d7f0b73c28d26bf77..a8c5e959e66b03276e428a3536d3e559da46e519 100644 (file)
  * 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