diff mbox series

[RFC,10/12] y2038: Convert __xclock_now to be Y2038 safe

Message ID 20200601140740.16371-11-lukma@denx.de
State New
Headers show
Series y2038: Convert timespec_{sub|add|create} in support to be Y2038 safe | expand

Commit Message

Lukasz Majewski June 1, 2020, 2:07 p.m. UTC
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(-)
diff mbox series


diff --git a/support/xtime.h b/support/xtime.h
index f04dac14fd..91fac43711 100644
--- a/support/xtime.h
+++ b/support/xtime.h
@@ -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;