summaryrefslogtreecommitdiff
path: root/extmod/vfs_posix_file.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-03-18 17:47:15 +1100
committerDamien George <damien.p.george@gmail.com>2020-03-18 21:01:07 +1100
commit2cdf1d25f59409b6130c0e8b6cf50300aed2d7e6 (patch)
tree762d210ad4a7c51903498bc0a2c3b885059e778f /extmod/vfs_posix_file.c
parent68b1bc2042f8e5dcdfbe12c5b0dace0b174f6911 (diff)
unix: Remove custom file implementation to use extmod's VFS POSIX one.
The implementation in extmod/vfs_posix_file.c is now equivalent to that in ports/unix/file.c, so remove the latter and use the former instead.
Diffstat (limited to 'extmod/vfs_posix_file.c')
-rw-r--r--extmod/vfs_posix_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/vfs_posix_file.c b/extmod/vfs_posix_file.c
index 8ac6f975d..3735fedf6 100644
--- a/extmod/vfs_posix_file.c
+++ b/extmod/vfs_posix_file.c
@@ -29,7 +29,7 @@
#include "py/stream.h"
#include "extmod/vfs_posix.h"
-#if MICROPY_VFS_POSIX
+#if MICROPY_VFS_POSIX || MICROPY_VFS_POSIX_FILE
#include <fcntl.h>
@@ -283,4 +283,4 @@ const mp_obj_vfs_posix_file_t mp_sys_stdin_obj = {{&mp_type_textio}, STDIN_FILEN
const mp_obj_vfs_posix_file_t mp_sys_stdout_obj = {{&mp_type_textio}, STDOUT_FILENO};
const mp_obj_vfs_posix_file_t mp_sys_stderr_obj = {{&mp_type_textio}, STDERR_FILENO};
-#endif // MICROPY_VFS_POSIX
+#endif // MICROPY_VFS_POSIX || MICROPY_VFS_POSIX_FILE