From f8e9ef5cd04eeb93acf68bc7ed470d60130884ea Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky <pfalcon@users.sourceforge.net> Date: Sun, 18 Oct 2015 02:52:29 +0300 Subject: [PATCH] unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check. E.g. Windows lacks this header. --- unix/modos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/modos.c b/unix/modos.c index 02d7e37e0..1fd8790a3 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" -- GitLab