diff options
author | xbe <xbe@machine> | 2014-03-16 00:14:26 -0700 |
---|---|---|
committer | xbe <xbe@machine> | 2014-03-17 02:43:40 -0700 |
commit | efe34223945a5d27a7ae9445d0793d6330cd2411 (patch) | |
tree | 7d3a9d2b59259696c0cf619174a55eb417b61464 /py/lexerunix.c | |
parent | c93a22197bfdb9323fa176eca4d30f307963ce9d (diff) |
py: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
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) { |