X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstat%2Ffstatvfs.c;h=806c3fd462be5e1be87837c7e40852f0d60274fb;hp=4a8bfe2e1ea1238be352c6244ca981629a3b6d46;hb=8c07f6eac843c2acb217083d48c4cef95f2b891c;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b 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);