summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/gc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/extra/gc.c b/extra/gc.c
index 8e2446a2..4f907a8a 100644
--- a/extra/gc.c
+++ b/extra/gc.c
@@ -67,8 +67,12 @@
#include "../darwin_stop_world.c"
#include "../dyn_load.c"
#include "../gc_dlopen.c"
-#include "../mach_dep.c"
-#include "../pthread_stop_world.c"
+#if !defined(PLATFORM_MACH_DEP)
+# include "../mach_dep.c"
+#endif
+#if !defined(PLATFORM_STOP_WORLD)
+# include "../pthread_stop_world.c"
+#endif
#include "../pthread_support.c"
#include "../specific.c"
#include "../win32_threads.c"