From d256d742d1766c84c881f02902858ece1315725e Mon Sep 17 00:00:00 2001 From: yangjie11 Date: Wed, 14 Jun 2023 11:29:56 +0800 Subject: [PATCH] [components][time.h]Fixed undefined macro TIMER_ABSTIME --- components/libc/compilers/common/include/sys/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/libc/compilers/common/include/sys/time.h b/components/libc/compilers/common/include/sys/time.h index 7cf4c8c0d8..8be8d60f29 100644 --- a/components/libc/compilers/common/include/sys/time.h +++ b/components/libc/compilers/common/include/sys/time.h @@ -157,6 +157,10 @@ int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); #define CLOCK_MONOTONIC 4 #endif /* CLOCK_MONOTONIC */ +#ifndef TIMER_ABSTIME +#define TIMER_ABSTIME 4 +#endif /* TIMER_ABSTIME */ + #ifdef CLOCK_TAI #define CLOCK_ID_MAX CLOCK_TAI #else