[sgen] Fix headers for independent compilation.
authorMark Probst <mark.probst@gmail.com>
Wed, 22 Apr 2015 18:58:57 +0000 (11:58 -0700)
committerMark Probst <mark.probst@gmail.com>
Wed, 29 Apr 2015 18:00:12 +0000 (11:00 -0700)
mono/metadata/sgen-marksweep.c
mono/metadata/sgen-memory-governor.c
mono/metadata/sgen-thread-pool.c
mono/metadata/sgen-workers.c

index f84a898af84144b432129b64401613f3cd67f05a..5a14b1a3f3b21044df211e7fdac7dd7cf77e65cd 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <math.h>
 #include <errno.h>
+#include <string.h>
+#include <stdlib.h>
 
 #include "mono/metadata/sgen-gc.h"
 #include "mono/metadata/sgen-protocol.h"
@@ -38,6 +40,7 @@
 #include "mono/metadata/sgen-workers.h"
 #include "mono/metadata/sgen-thread-pool.h"
 #include "mono/metadata/sgen-client.h"
+#include "mono/utils/mono-membar.h"
 
 #if defined(ARCH_MIN_MS_BLOCK_SIZE) && defined(ARCH_MIN_MS_BLOCK_SIZE_SHIFT)
 #define MS_BLOCK_SIZE  ARCH_MIN_MS_BLOCK_SIZE
index 76617706aedaa3905f22b1af32904f90cb03f866..5c9b8373663f2ebabbedffb1aa2ee344064e771b 100644 (file)
@@ -27,6 +27,8 @@
 #include "config.h"
 #ifdef HAVE_SGEN_GC
 
+#include <stdlib.h>
+
 #include "mono/metadata/sgen-gc.h"
 #include "mono/metadata/sgen-memory-governor.h"
 #include "mono/metadata/sgen-thread-pool.h"
index bff62eb7b42acbd880bc6d03e8ade3c6e2ad4e79..d716038c573be23a41ac627438a1cabf16e14403 100644 (file)
@@ -24,7 +24,9 @@
 #include "mono/metadata/sgen-thread-pool.h"
 #include "mono/metadata/sgen-pointer-queue.h"
 #include "mono/utils/mono-mutex.h"
+#ifndef SGEN_WITHOUT_MONO
 #include "mono/utils/mono-threads.h"
+#endif
 
 static mono_mutex_t lock;
 static mono_cond_t work_cond;
index 41ee858459316b6ef3a5e7a252a0fbaf8572e247..cbbd7709007d7a8ef143dabd5229ae49e8f06e02 100644 (file)
 #include "config.h"
 #ifdef HAVE_SGEN_GC
 
+#include <string.h>
+
 #include "mono/metadata/sgen-gc.h"
 #include "mono/metadata/sgen-workers.h"
 #include "mono/metadata/sgen-thread-pool.h"
-#include "mono/utils/mono-counters.h"
+#include "mono/utils/mono-membar.h"
 #include "mono/metadata/sgen-client.h"
 
 static int workers_num;