summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authoryangjie11 <[email protected]>2023-06-14 11:29:56 +0800
committerMan, Jianting (Meco) <[email protected]>2023-06-14 06:31:10 -0400
commitd256d742d1766c84c881f02902858ece1315725e (patch)
tree705e816e8dc01cde222b2c227819e658631e90ba /components
parentc7ad493b9ac3e2a6085ddfee0a33717de60845f2 (diff)
[components][time.h]Fixed undefined macro TIMER_ABSTIME
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/common/include/sys/time.h4
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