summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/stat.c')
-rw-r--r--libc/sysdeps/linux/common/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index a860c0c7f..99ce8d2dd 100644
--- a/libc/sysdeps/linux/common/stat.c
+++ b/libc/sysdeps/linux/common/stat.c
@@ -25,7 +25,7 @@ int stat(const char *file_name, struct stat *buf)
int stat(const char *file_name, struct stat *buf)
{
- return fstatat64(AT_FDCWD, file_name, buf, 0);
+ return fstatat64(AT_FDCWD, file_name, (struct stat64 *)buf, 0);
}
#elif __NR_statx && defined __UCLIBC_HAVE_STATX__
# include <fcntl.h>