add tcgetwinsize and tcsetwinsize functions, move struct winsize
[musl] / src / time / __map_file.c
index 9d37622..d3cefa8 100644 (file)
@@ -2,10 +2,11 @@
 #include <fcntl.h>
 #include <sys/stat.h>
 #include "syscall.h"
+#include "kstat.h"
 
 const char unsigned *__map_file(const char *pathname, size_t *size)
 {
-       struct stat st;
+       struct kstat st;
        const unsigned char *map = MAP_FAILED;
        int fd = sys_open(pathname, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
        if (fd < 0) return 0;