Skip to content

Commit d256d74

Browse files
yangjie11mysterywolf
authored andcommitted
[components][time.h]Fixed undefined macro TIMER_ABSTIME
1 parent c7ad493 commit d256d74

File tree

1 file changed

+4
-0
lines changed
  • components/libc/compilers/common/include/sys

1 file changed

+4
-0
lines changed

components/libc/compilers/common/include/sys/time.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
157157
#define CLOCK_MONOTONIC 4
158158
#endif /* CLOCK_MONOTONIC */
159159

160+
#ifndef TIMER_ABSTIME
161+
#define TIMER_ABSTIME 4
162+
#endif /* TIMER_ABSTIME */
163+
160164
#ifdef CLOCK_TAI
161165
#define CLOCK_ID_MAX CLOCK_TAI
162166
#else

0 commit comments

Comments
 (0)