diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2011-07-20 23:41:15 +0400 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2011-07-20 23:41:15 +0400 |
commit | 792c8bcff2d1f9102408f86edb057f158b2b5090 (patch) | |
tree | a5be5d33f4fc33f2ab780b969aac697b0e83f852 /newlib/libc/include/time.h | |
parent | 42f8872e61163d2e87cdcecd6de0dc199c444b1d (diff) |
* libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):
Declare.
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION):
Define.
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 |