summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-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 */