mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix (hopefully) statvfs breakage on x86_64 that resulted from fixing i386...
This commit is contained in:
parent
59a37f8f1f
commit
fc0cf2852d
2 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue