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>
This commit is contained in:
Damien George 2022-10-28 12:56:56 +11:00
parent 3ed017677b
commit da36b84d45

View File

@ -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.