summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/modos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/modos.c b/unix/modos.c
index 02d7e37e02..1fd8790a30 100644
--- a/unix/modos.c
+++ b/unix/modos.c
@@ -30,7 +30,9 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
+#if MICROPY_PY_OS_STATVFS
#include <sys/statvfs.h>
+#endif
#include "py/nlr.h"
#include "py/runtime.h"