summaryrefslogtreecommitdiff
path: root/userland/libc/sys/stat/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/sys/stat/stat.c')
-rw-r--r--userland/libc/sys/stat/stat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/sys/stat/stat.c b/userland/libc/sys/stat/stat.c
index 00b4f52..21501c2 100644
--- a/userland/libc/sys/stat/stat.c
+++ b/userland/libc/sys/stat/stat.c
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <sys/stat.h>
#include <syscall.h>
+#include <unistd.h>
int stat(const char *path, struct stat *buf) {
int fd = open(path, O_RDONLY);