summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/main.c b/unix/main.c
index 6a7b44ff84..eecec301bf 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -1,8 +1,11 @@
#include <stdint.h>
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include "nlr.h"
#include "misc.h"
@@ -391,8 +394,6 @@ int main(int argc, char **argv) {
return 0;
}
-#include <sys/stat.h>
-
uint mp_import_stat(const char *path) {
struct stat st;
if (stat(path, &st) == 0) {