X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Ffstatvfs.c;h=806c3fd462be5e1be87837c7e40852f0d60274fb;hb=e0037efc1253e190c7c75f74e5a05333fdd807bb;hp=83bd748688f5657f67306c5cb930c665f8d34140;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stat/fstatvfs.c b/src/stat/fstatvfs.c index 83bd7486..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_fstatfs64, 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);