diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-17 10:31:03 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-17 10:31:03 +0000 |
commit | c44115f831046b832dffdd0f7ab9acee89c69251 (patch) | |
tree | b6d47715a189326e3cf9bc951be06ddf2825d61e /py/lexerunix.c | |
parent | 781687c77280c96b4b240994a0a0e28cc959d269 (diff) | |
parent | c55388823f355334b1691b97cad5efc279feb224 (diff) |
Merge branch 'master' of github.com:xbe/micropython
Diffstat (limited to 'py/lexerunix.c')
-rw-r--r-- | py/lexerunix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/lexerunix.c b/py/lexerunix.c index fb62d3d72..73d30f247 100644 --- a/py/lexerunix.c +++ b/py/lexerunix.c @@ -1,4 +1,3 @@ -#include <stdint.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> @@ -11,6 +10,9 @@ #if MICROPY_ENABLE_LEXER_UNIX +#include <sys/stat.h> +#include <sys/types.h> + mp_lexer_t *mp_lexer_new_from_file(const char *filename) { int fd = open(filename, O_RDONLY); if (fd < 0) { |