Skip to content

Commit f8e9ef5

Browse files
committed
unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check.
E.g. Windows lacks this header.
1 parent 020386b commit f8e9ef5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unix/modos.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#include <unistd.h>
3131
#include <errno.h>
3232
#include <stdlib.h>
33+
#if MICROPY_PY_OS_STATVFS
3334
#include <sys/statvfs.h>
35+
#endif
3436

3537
#include "py/nlr.h"
3638
#include "py/runtime.h"

0 commit comments

Comments
 (0)