diff options
| author | Damien George <damien@micropython.org> | 2022-10-28 12:56:56 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-11-01 13:10:45 +1100 |
| commit | da36b84d453eae0468cc77c0904b3b22c9e30387 (patch) | |
| tree | 24842c209226244d47730798cb3fa31c7240ac9f | |
| parent | 3ed017677b7a955098b51ebbabaa445ebc0a5bbd (diff) | |
extmod/vfs_posix: Include errno.h and unistd.h headers.
errno.h is needed for the errno variable, and unistd.h is needed for chdir.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | extmod/vfs_posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/vfs_posix.c b/extmod/vfs_posix.c index 3694ebaf9..0a8274373 100644 --- a/extmod/vfs_posix.c +++ b/extmod/vfs_posix.c @@ -37,9 +37,11 @@ #error "MICROPY_VFS_POSIX requires MICROPY_ENABLE_FINALISER" #endif +#include <errno.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> +#include <unistd.h> #include <dirent.h> #ifdef _MSC_VER #include <direct.h> // For mkdir etc. |
