diff options
Diffstat (limited to 'newlib/libc/include/time.h')
-rw-r--r-- | newlib/libc/include/time.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 7d3b2abd3..306bad619 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -175,6 +175,22 @@ int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); #endif #endif /* _POSIX_TIMERS */ +#if defined(_POSIX_CLOCK_SELECTION) + +#ifdef __cplusplus +extern "C" { +#endif + +int _EXFUN(clock_nanosleep, + (clockid_t clock_id, int flags, const struct timespec *rqtp, + struct timespec *rmtp)); + +#ifdef __cplusplus +} +#endif + +#endif /* _POSIX_CLOCK_SELECTION */ + #ifdef __cplusplus extern "C" { #endif |