diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-18 02:52:29 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-18 02:54:20 +0300 |
commit | f8e9ef5cd04eeb93acf68bc7ed470d60130884ea (patch) | |
tree | c00225fc9130dc2d895fca99a453e22ed34f46ab | |
parent | 020386b61cda09da001a835f2816c39306476037 (diff) | |
download | micropython-f8e9ef5cd04eeb93acf68bc7ed470d60130884ea.tar.gz micropython-f8e9ef5cd04eeb93acf68bc7ed470d60130884ea.zip |
unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check.
E.g. Windows lacks this header.
-rw-r--r-- | unix/modos.c | 2 |
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" |