mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check.
E.g. Windows lacks this header.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user