[runtime] Avoid a crash when trying to load a non-assembly file as an assembly. Fixes...
[mono.git] / mono / mini / xdebug.c
index e249e6e8e958f6b1f30ebe79f2366115453fc4cb..0e051966e126822f7121977b87b7aed82b1a2005 100644 (file)
@@ -27,7 +27,7 @@
 #include <glib.h>
 #include "mini.h"
 
-#if !defined(DISABLE_AOT) && !defined(DISABLE_JIT)
+#if !defined(DISABLE_AOT) && !defined(DISABLE_JIT) && USE_BIN_WRITER
 #include <sys/types.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>