Make the thread dump code safe by doing only async safe operations when a thread...
[mono.git] / mono / metadata / gc-stats.c
index f21ac02d0bf84d424ec5d6a03e438a2c386f3a14..ff442e43f6a7faf3484ec2848e7d0bc01d0f6438 100644 (file)
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include "mono/metadata/gc-internal-agnostic.h"
+#include "mono/sgen/gc-internal-agnostic.h"
 
 /*
  * Due to a bug in the linker on Darwin we need to initialize this struct, or there will be
  * "undefined symbol" errors.
  */
+#if defined(__APPLE__)
 GCStats gc_stats = {};
+#else
+GCStats gc_stats;
+#endif