fix (hopefully) statvfs breakage on x86_64 that resulted from fixing i386...
[musl] / src / stat / statvfs.c
1 #include <sys/statvfs.h>
2 #include "syscall.h"
3 #include "libc.h"
4
5 int statvfs(const char *path, struct statvfs *buf)
6 {
7 #ifdef SYS_statfs64
8         return syscall(SYS_statfs64, path, sizeof *buf, buf);
9 #else
10         return syscall(SYS_statfs, path, buf);
11 #endif
12 }
13
14 weak_alias(statvfs, statfs);
15
16 LFS64(statvfs);
17 LFS64(statfs);