未验证 提交 d55a9cd6 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2202 from RT-Thread/fix_lwp

[lwp] Fix compiling warning in lwP.
......@@ -30,14 +30,19 @@ typedef uint32_t id_t; /* may contain pid, uid or gid */
#define PRIO_PGRP 1
#define PRIO_USER 2
#ifndef TIMEVAL_TO_TIMESPEC
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
(ts)->tv_sec = (tv)->tv_sec; \
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
}
#endif
#ifndef TIMESPEC_TO_TIMEVAL
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
(tv)->tv_sec = (ts)->tv_sec; \
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
}
#endif
void sys_exit(int value);
ssize_t sys_read(int fd, void *buf, size_t nbyte);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册