fix (hopefully) statvfs breakage on x86_64 that resulted from fixing i386...
[musl] / src / stat / statvfs.c
index ebf14b4..e72c225 100644 (file)
@@ -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);