summaryrefslogtreecommitdiff
path: root/lib/libc/stat/chmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stat/chmod.c')
-rw-r--r--lib/libc/stat/chmod.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/stat/chmod.c b/lib/libc/stat/chmod.c
index 6b7283e2..f204df83 100644
--- a/lib/libc/stat/chmod.c
+++ b/lib/libc/stat/chmod.c
@@ -1,5 +1,8 @@
-#include <sys/stat.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_chmod
+
+#include <sys/stat.h> // for chmod
+#include <sys/types.h> // for mode_t
+#include <syscall.h> // for __syscall_2, syscall
int chmod(const char *path, mode_t mode)
{