From da36b84d453eae0468cc77c0904b3b22c9e30387 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 28 Oct 2022 12:56:56 +1100 Subject: [PATCH] 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 --- extmod/vfs_posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extmod/vfs_posix.c b/extmod/vfs_posix.c index 3694ebaf99..0a82743734 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 #include #include #include +#include #include #ifdef _MSC_VER #include // For mkdir etc.