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);