projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the type of wchar_t on arm; support wchar_t varying with arch
[musl]
/
src
/
stat
/
statvfs.c
diff --git
a/src/stat/statvfs.c
b/src/stat/statvfs.c
index
55a05d5
..
e72c225
100644
(file)
--- a/
src/stat/statvfs.c
+++ b/
src/stat/statvfs.c
@@
-4,7
+4,11
@@
int statvfs(const char *path, struct statvfs *buf)
{
int statvfs(const char *path, struct statvfs *buf)
{
- return syscall2(__NR_statfs64, (long)path, (long)buf);
+#ifdef SYS_statfs64
+ return syscall(SYS_statfs64, path, sizeof *buf, buf);
+#else
+ return syscall(SYS_statfs, path, buf);
+#endif
}
weak_alias(statvfs, statfs);
}
weak_alias(statvfs, statfs);