Browse Source

[components][time.h]Fixed undefined macro TIMER_ABSTIME

yangjie11 1 year ago
parent
commit
d256d742d1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      components/libc/compilers/common/include/sys/time.h

+ 4 - 0
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
 #define CLOCK_MONOTONIC     4
 #endif /* CLOCK_MONOTONIC */
 #endif /* CLOCK_MONOTONIC */
 
 
+#ifndef TIMER_ABSTIME
+#define TIMER_ABSTIME       4
+#endif /* TIMER_ABSTIME */
+
 #ifdef CLOCK_TAI
 #ifdef CLOCK_TAI
 #define CLOCK_ID_MAX CLOCK_TAI
 #define CLOCK_ID_MAX CLOCK_TAI
 #else
 #else