[RFC,10/12] y2038: Convert __xclock_now to be Y2038 safe
Commit Message
The struct timespec has been replaced with Y2038 safe struct __timespec64.
Tested with glibc/glibc-many-build --keep failed glibcs
---
support/xtime.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -32,9 +32,9 @@ void __xclock_gettime (clockid_t clock, struct __timespec64 *ts);
/* This helper can often simplify tests by avoiding an explicit
variable declaration or allowing that declaration to be const. */
-static inline struct timespec __xclock_now (clockid_t clock)
+static inline struct __timespec64 __xclock_now (clockid_t clock)
{
- struct timespec ts;
+ struct __timespec64 ts;
__xclock_gettime (clock, &ts);
return ts;
}