diff options
-rw-r--r-- | extmod/vfs_posix_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/vfs_posix_file.c b/extmod/vfs_posix_file.c index 3735fedf6..ef40eff6a 100644 --- a/extmod/vfs_posix_file.c +++ b/extmod/vfs_posix_file.c @@ -32,6 +32,7 @@ #if MICROPY_VFS_POSIX || MICROPY_VFS_POSIX_FILE #include <fcntl.h> +#include <unistd.h> #ifdef _WIN32 #define fsync _commit |