diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-08-13 13:35:28 -0700 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2019-10-24 09:14:26 -0700 |
commit | acab05949fd28cdac6358f9a143cd010e08914b7 (patch) | |
tree | 1c2b98ae3fc69bdf85029a636e1f02cfb88bb18c /sysdeps/unix/sysv/linux/generic/bits/statfs.h | |
parent | 3007ad2140256e83918ce531435385fa003e9fce (diff) | |
download | glibc-acab05949fd28cdac6358f9a143cd010e08914b7.tar.gz glibc-acab05949fd28cdac6358f9a143cd010e08914b7.tar.xz glibc-acab05949fd28cdac6358f9a143cd010e08914b7.zip |
Define __STATFS_MATCHES_STATFS64
Add a new macro __STATFS_MATCHES_STATFS64 that specifies if fsblkcnt_t matches fsblkcnt64_t and if fsfilcnt_t matches fsfilcnt64_t. As we don't have the padding we also need to update the overflow checker to not access the undefined members.
Diffstat (limited to 'sysdeps/unix/sysv/linux/generic/bits/statfs.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/generic/bits/statfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/generic/bits/statfs.h b/sysdeps/unix/sysv/linux/generic/bits/statfs.h index c4069aba62..e622daf224 100644 --- a/sysdeps/unix/sysv/linux/generic/bits/statfs.h +++ b/sysdeps/unix/sysv/linux/generic/bits/statfs.h @@ -34,7 +34,7 @@ #if defined __USE_FILE_OFFSET64 # define __field64(type, type64, name) type64 name -#elif __WORDSIZE == 64 +#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64 # define __field64(type, type64, name) type name #elif __BYTE_ORDER == __LITTLE_ENDIAN # define __field64(type, type64, name) \ |