diff options
| author | yangjie11 <[email protected]> | 2023-06-14 11:29:56 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-06-14 06:31:10 -0400 |
| commit | d256d742d1766c84c881f02902858ece1315725e (patch) | |
| tree | 705e816e8dc01cde222b2c227819e658631e90ba | |
| parent | c7ad493b9ac3e2a6085ddfee0a33717de60845f2 (diff) | |
[components][time.h]Fixed undefined macro TIMER_ABSTIME
| -rw-r--r-- | components/libc/compilers/common/include/sys/time.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
