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 |
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; }