diff options
Diffstat (limited to 'lib/libc/statvfs')
| -rw-r--r-- | lib/libc/statvfs/fstatvfs.c | 8 | ||||
| -rw-r--r-- | lib/libc/statvfs/statvfs.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/libc/statvfs/fstatvfs.c b/lib/libc/statvfs/fstatvfs.c index 048db737..d48a92f0 100644 --- a/lib/libc/statvfs/fstatvfs.c +++ b/lib/libc/statvfs/fstatvfs.c @@ -1,6 +1,8 @@ -#include <__statvfs.h> -#include <syscall.h> -#include <asm-generic/statfs.h> +#include "asm/unistd_64.h" // for __NR_fstatfs + +#include <__statvfs.h> // for __statvfs +#include <asm-generic/statfs.h> // for statfs +#include <syscall.h> // for __syscall_2, syscall int fstatvfs(int fildes, struct __statvfs *buf) { diff --git a/lib/libc/statvfs/statvfs.c b/lib/libc/statvfs/statvfs.c index 3a7c1f3e..93ab5afb 100644 --- a/lib/libc/statvfs/statvfs.c +++ b/lib/libc/statvfs/statvfs.c @@ -1,6 +1,8 @@ -#include <__statvfs.h> -#include <syscall.h> -#include <asm-generic/statfs.h> +#include "asm/unistd_64.h" // for __NR_statfs + +#include <__statvfs.h> // for __statvfs +#include <asm-generic/statfs.h> // for statfs +#include <syscall.h> // for __syscall_2, syscall int statvfs(const char *restrict path, struct __statvfs *restrict buf) { |
