diff options
| author | zhkag <[email protected]> | 2023-02-28 09:36:03 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-03-01 00:37:20 +0800 |
| commit | 111a5b88cb2f9ecc87fb89df351c5045b620cb54 (patch) | |
| tree | 02e41dd6d047b32fbc2eeb499b7c8cd2894faf1b /components | |
| parent | ae0296e802e03a476a5de2adaf186d431762d684 (diff) | |
smart select POSIX timer clock
Diffstat (limited to 'components')
| -rw-r--r-- | components/lwp/lwp_syscall.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index 6b12d929fe..6995e7dc9d 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -78,6 +78,13 @@ #define GRND_RANDOM 0x0002 #endif /*GRND_RANDOM */ +#ifndef RT_USING_POSIX_TIMER +#error "No definition RT_USING_POSIX_TIMER" +#endif +#ifndef RT_USING_POSIX_CLOCK +#error "No definition RT_USING_POSIX_CLOCK" +#endif + #define SET_ERRNO(no) rt_set_errno(-(no)) #define GET_ERRNO() ((rt_get_errno() > 0) ? (-rt_get_errno()) : rt_get_errno()) struct musl_sockaddr |
