Make the thread dump code safe by doing only async safe operations when a thread...
[mono.git] / mono / metadata / gc-stats.c
index 20e7cae5831d5dc404c7516f55be8cc992fd07fb..ff442e43f6a7faf3484ec2848e7d0bc01d0f6438 100644 (file)
@@ -23,4 +23,8 @@
  * 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