X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fstatvfs.c;h=e72c225c74aa98ecb5cc0038904019856ec7e7de;hb=f9ed11f3e1337d6bac6298db1d66d4f27bb59f6b;hp=ebf14b43515a6c02f77fb62e3e5cfd164bf0889f;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b;p=musl diff --git a/src/stat/statvfs.c b/src/stat/statvfs.c index ebf14b43..e72c225c 100644 --- a/src/stat/statvfs.c +++ b/src/stat/statvfs.c @@ -4,7 +4,11 @@ int statvfs(const char *path, struct statvfs *buf) { - return syscall2(__NR_statfs, (long)path, (long)buf); +#ifdef SYS_statfs64 + return syscall(SYS_statfs64, path, sizeof *buf, buf); +#else + return syscall(SYS_statfs, path, buf); +#endif } weak_alias(statvfs, statfs);