Wrap unistd.h include in HAVE_UNISTD_H check.
[mono.git] / mono / metadata / sgen-cardtable.c
index ddd1d6d2ea184e959925ff44b745261890c06c81..971058f0cb267ce422fef37d468fdfcc8f5cacfb 100644 (file)
@@ -44,7 +44,9 @@
 
 //#define CARDTABLE_STATS
 
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif