summaryrefslogtreecommitdiffstatshomepage
path: root/py/lexerunix.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/lexerunix.c')
-rw-r--r--py/lexerunix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/lexerunix.c b/py/lexerunix.c
index fb62d3d72f..73d30f2476 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) {