| 87 | /* Implemented in compat.c */ |
| 88 | int cbm_clock_gettime(int clk_id, struct timespec *tp); |
| 89 | static inline int cbm_nanosleep(const struct timespec *req, struct timespec *rem) { |
| 90 | (void)rem; |
| 91 | Sleep((DWORD)(req->tv_sec * 1000 + req->tv_nsec / 1000000)); |
| 92 | return 0; |
| 93 | } |
| 94 | #else |
| 95 | #define cbm_clock_gettime clock_gettime |
| 96 | #define cbm_nanosleep nanosleep |
no outgoing calls