time: Add padding for the timespec if required

System Internals / glibc - Alistair Francis [wdc.com] - 1 October 2019 21:56 EDT

If we are running on a 32-bit system with a 64-bit time_t we need to ensure there is padding around the tv_nsec variable. This is requried as the timespec is #defined to the __timespec64 struct.

- time/bits/types/struct_timespec.h: Add padding for the timespec if required.

69fd157a3d time: Add padding for the timespec if required
ChangeLog | 5 +++++
time/bits/types/struct_timespec.h | 13 +++++++++++++
2 files changed, 18 insertions(+)

Upstream: sourceware.org


  • Share