summaryrefslogtreecommitdiff
path: root/extmod/vfs_posix_file.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2020-03-21 17:34:15 -0500
committerDamien George <damien.p.george@gmail.com>2020-03-25 00:59:39 +1100
commit58d9a4815d9b09651c658d15adc771638272ba44 (patch)
tree4dbf8662449c6f124520567bfc0719f51cfaad45 /extmod/vfs_posix_file.c
parentd0edaf88a3afbb5b701bc429bd4bead4a81fbf37 (diff)
extmod/vfs_posix_file: Include unistd.h to get STD{IN,OUT,ERR}_FILENO.
Diffstat (limited to 'extmod/vfs_posix_file.c')
-rw-r--r--extmod/vfs_posix_file.c1
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