Fix cygwin build.
authorAtsushi Eno <atsushi@ximian.com>
Wed, 12 Jan 2011 10:47:00 +0000 (19:47 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Wed, 12 Jan 2011 10:47:00 +0000 (19:47 +0900)
mono/metadata/sgen-gc.h

index b5ae84472d48aeeb062e9e0c42e9b25994fcbe4f..af37843828784aa27dac26efd6e6d3fcdc8c8731 100644 (file)
@@ -26,6 +26,9 @@
 
 /* pthread impl */
 #include "config.h"
+
+#ifdef HAVE_SGEN_GC
+
 #include <glib.h>
 #include <pthread.h>
 #include <signal.h>
@@ -802,4 +805,6 @@ void mono_sgen_los_iterate_live_block_ranges (sgen_cardtable_block_callback call
 void mono_sgen_los_scan_card_table (SgenGrayQueue *queue) MONO_INTERNAL;
 FILE *mono_sgen_get_logfile (void) MONO_INTERNAL;
 
+#endif /* HAVE_SGEN_GC */
+
 #endif /* __MONO_SGENGC_H__ */