diff options
author | stijn <stinos@zoho.com> | 2015-08-14 12:04:23 +0200 |
---|---|---|
committer | stijn <stinos@zoho.com> | 2015-08-14 12:04:23 +0200 |
commit | 3179d23cee8d972d93f61e205a359c4ecf0cf54c (patch) | |
tree | 7f6bff5cd018ccb80a0426c62062afeb846c49bd /windows/realpath.c | |
parent | bdd78c31b68db5323796d93e0a17159806ce10fc (diff) | |
download | micropython-3179d23cee8d972d93f61e205a359c4ecf0cf54c.tar.gz micropython-3179d23cee8d972d93f61e205a359c4ecf0cf54c.zip |
windows: Make unistd.h more posix compatible
- add SEEK_XXX definitions, this fixes missing definition in py/stream.c
- move R_OK from realpath.c and add W_OK/F_OK defintions
- move STDXXX_FILENO definitions from mpconfigport for consistency
Diffstat (limited to 'windows/realpath.c')
-rw-r--r-- | windows/realpath.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/windows/realpath.c b/windows/realpath.c index 2fd86aa272..c0ed6b84da 100644 --- a/windows/realpath.c +++ b/windows/realpath.c @@ -26,11 +26,7 @@ #include <stdlib.h> #include <errno.h> -#include <io.h> - -#ifndef R_OK - #define R_OK 4 -#endif +#include <unistd.h> // Make sure a path only has forward slashes. char *to_unix_path(char *p) { |