about summary refs log tree commit diff
path: root/src/stat/fstatvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat/fstatvfs.c')
-rw-r--r--src/stat/fstatvfs.c6
1 files changed, 5 insertions, 1 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);