use namespace-safe __lseek for __stdio_seek instead of direct syscall
[musl] / src / unistd / fchown.c
index 0345984..737b367 100644 (file)
@@ -3,8 +3,6 @@
 #include <fcntl.h>
 #include "syscall.h"
 
-void __procfdname(char *, unsigned);
-
 int fchown(int fd, uid_t uid, gid_t gid)
 {
        int ret = __syscall(SYS_fchown, fd, uid, gid);
@@ -16,7 +14,7 @@ int fchown(int fd, uid_t uid, gid_t gid)
 #ifdef SYS_chown
        return syscall(SYS_chown, buf, uid, gid);
 #else
-       return syscall(SYS_fchownat, AT_FDCWD, buf, uid, gid);
+       return syscall(SYS_fchownat, AT_FDCWD, buf, uid, gid, 0);
 #endif
 
 }