summaryrefslogtreecommitdiffstats
path: root/libc/bionic/lchown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/lchown.cpp')
-rw-r--r--libc/bionic/lchown.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/bionic/lchown.cpp b/libc/bionic/lchown.cpp
index 95251db..24611a5 100644
--- a/libc/bionic/lchown.cpp
+++ b/libc/bionic/lchown.cpp
@@ -29,6 +29,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <unistd.h>
int lchown(const char* path, uid_t uid, gid_t gid) {
return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW);