[runtime] Fix the coop build on posix platforms.
authorZoltan Varga <vargaz@gmail.com>
Sat, 8 Aug 2015 22:44:06 +0000 (22:44 +0000)
committerZoltan Varga <vargaz@gmail.com>
Sat, 8 Aug 2015 22:44:06 +0000 (22:44 +0000)
mono/metadata/sgen-os-posix.c

index d0aa841296abca3ffc5e6da7ec0a5080bf7ccacb..a45d6be1d9c44c13c527d31cfa2f4eded804f868 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "config.h"
 
-#ifdef HAVE_SGEN_GC
+#if defined(HAVE_SGEN_GC) && !defined(USE_COOP_GC)
 #if !defined(__MACH__) && !MONO_MACH_ARCH_SUPPORTED && defined(HAVE_PTHREAD_KILL)
 
 #include <errno.h>