瀏覽代碼

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

yangjie11 1 年之前
父節點
當前提交
d256d742d1
共有 1 個文件被更改,包括 4 次插入0 次删除
  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
 #endif /* CLOCK_MONOTONIC */
 
+#ifndef TIMER_ABSTIME
+#define TIMER_ABSTIME       4
+#endif /* TIMER_ABSTIME */
+
 #ifdef CLOCK_TAI
 #define CLOCK_ID_MAX CLOCK_TAI
 #else