summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-26 01:42:14 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-26 00:42:45 +0000
commitb1d3d3307a3f36af6a3bfedb63e2f424517798d9 (patch)
tree6e11f8cf8970e38e8fa47ea25938d84f15f41f77 /libc
parent0cbf892ff284b1c95adcdcd8b0547712213df083 (diff)
stat.h: fix issue with aarch64
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common-generic/bits/stat.h5
1 files changed, 5 insertions, 0 deletions
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 <bits/align64bit.h>
+#include <bits/wordsize.h>
#include <endian.h>
/* 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 */