X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Ffstatvfs.c;h=806c3fd462be5e1be87837c7e40852f0d60274fb;hb=2b0cedac8d03bbeb1bd0e1d77fab775b1d9f3e25;hp=4a8bfe2e1ea1238be352c6244ca981629a3b6d46;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b;p=musl diff --git a/src/stat/fstatvfs.c b/src/stat/fstatvfs.c index 4a8bfe2e..806c3fd4 100644 --- a/src/stat/fstatvfs.c +++ b/src/stat/fstatvfs.c @@ -4,7 +4,11 @@ int fstatvfs(int fd, struct statvfs *buf) { - return syscall2(__NR_fstatfs, fd, (long)buf); +#ifdef SYS_fstatfs64 + return syscall(SYS_fstatfs64, fd, sizeof *buf, buf); +#else + return syscall(SYS_fstatfs, fd, buf); +#endif } weak_alias(fstatvfs, fstatfs);