mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 02:50:26 +08:00
[lwp] Fix compiling warning in lwP.
This commit is contained in:
parent
8f0d8658b7
commit
711c923614
@ -30,14 +30,19 @@ typedef uint32_t id_t; /* may contain pid, uid or gid */
|
|||||||
#define PRIO_PGRP 1
|
#define PRIO_PGRP 1
|
||||||
#define PRIO_USER 2
|
#define PRIO_USER 2
|
||||||
|
|
||||||
|
#ifndef TIMEVAL_TO_TIMESPEC
|
||||||
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
|
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
|
||||||
(ts)->tv_sec = (tv)->tv_sec; \
|
(ts)->tv_sec = (tv)->tv_sec; \
|
||||||
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
|
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef TIMESPEC_TO_TIMEVAL
|
||||||
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
|
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
|
||||||
(tv)->tv_sec = (ts)->tv_sec; \
|
(tv)->tv_sec = (ts)->tv_sec; \
|
||||||
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void sys_exit(int value);
|
void sys_exit(int value);
|
||||||
ssize_t sys_read(int fd, void *buf, size_t nbyte);
|
ssize_t sys_read(int fd, void *buf, size_t nbyte);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user