From b1d3d3307a3f36af6a3bfedb63e2f424517798d9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 26 Feb 2018 01:42:14 +0100 Subject: stat.h: fix issue with aarch64 --- libc/sysdeps/linux/common-generic/bits/stat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libc/sysdeps/linux/common-generic/bits/stat.h b/libc/sysdeps/linux/common-generic/bits/stat.h index 0f66fc0e7..4ade63f6f 100644 --- a/libc/sysdeps/linux/common-generic/bits/stat.h +++ b/libc/sysdeps/linux/common-generic/bits/stat.h @@ -9,6 +9,7 @@ #endif #include +#include #include /* Versions of the `struct stat' data structure. */ @@ -38,7 +39,11 @@ struct stat unsigned int st_gid; /* Group ID of the file's group.*/ unsigned long long st_rdev; /* Device number, if device. */ unsigned long long _pad1; +#if __WORDSIZE == 64 + __off_t st_size; /* SIze of file, in bytes. */ +#else long long st_size; /* SIze of file, in bytes. */ +#endif int st_blksize; /* Optimal block size for I/O. */ int __pad2; long long st_blocks; /* Number 512-byte blocks allocated */ -- cgit v1.2.3