diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-05 23:58:36 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-05 23:58:36 -0400 |
commit | fc0cf2852d1c1254a0e6ab25018f02b325eadf43 (patch) | |
tree | 2646cae6517b285acf69ce795320d333221b3b25 /src/stat | |
parent | 59a37f8f1f95980354c8f9ca30f77324d5660aaf (diff) | |
download | musl-fc0cf2852d1c1254a0e6ab25018f02b325eadf43.tar.gz musl-fc0cf2852d1c1254a0e6ab25018f02b325eadf43.tar.bz2 musl-fc0cf2852d1c1254a0e6ab25018f02b325eadf43.tar.xz musl-fc0cf2852d1c1254a0e6ab25018f02b325eadf43.zip |
fix (hopefully) statvfs breakage on x86_64 that resulted from fixing i386...
Diffstat (limited to 'src/stat')
-rw-r--r-- | src/stat/fstatvfs.c | 6 | ||||
-rw-r--r-- | src/stat/statvfs.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/stat/fstatvfs.c b/src/stat/fstatvfs.c index 833e8ec8..806c3fd4 100644 --- a/src/stat/fstatvfs.c +++ b/src/stat/fstatvfs.c @@ -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); diff --git a/src/stat/statvfs.c b/src/stat/statvfs.c index 517eebda..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 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); |