提交 fc0cf285 编写于 作者: R Rich Felker

fix (hopefully) statvfs breakage on x86_64 that resulted from fixing i386...

上级 59a37f8f
......@@ -4,7 +4,11 @@
int fstatvfs(int fd, struct statvfs *buf)
{
return syscall(SYS_fstatfs, fd, sizeof *buf, buf);
#ifdef SYS_fstatfs64
return syscall(SYS_fstatfs64, fd, sizeof *buf, buf);
#else
return syscall(SYS_fstatfs, fd, buf);
#endif
}
weak_alias(fstatvfs, fstatfs);
......
......@@ -4,7 +4,11 @@
int statvfs(const char *path, struct statvfs *buf)
{
return syscall(SYS_statfs, path, sizeof *buf, buf);
#ifdef SYS_statfs64
return syscall(SYS_statfs64, path, sizeof *buf, buf);
#else
return syscall(SYS_statfs, path, buf);
#endif
}
weak_alias(statvfs, statfs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册