diff --git a/qemu-arm/mpconfigport.h b/qemu-arm/mpconfigport.h
index 7f4c378901d6c15e24b60f7b2d0aeac0687a84d8..76663ccabe5d549e5b30c848cedd0f8b10d20fbe 100644
--- a/qemu-arm/mpconfigport.h
+++ b/qemu-arm/mpconfigport.h
@@ -14,6 +14,7 @@
 #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_NONE)
 #define MICROPY_FLOAT_IMPL          (MICROPY_FLOAT_IMPL_NONE)
 #define MICROPY_PATH_MAX            (512)
+#define MICROPY_ENABLE_MOD_IO       (0)
 
 // type definitions for the specific machine