diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2018-05-01 19:35:20 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2018-05-01 20:07:43 +0200 |
commit | 68628fe7d463541bf3c33da6b214e63c0cc9feed (patch) | |
tree | ebd060055194676afe1030959d788292505e788d /include/time.h | |
parent | 92d250d387e247029900c9074150f45866b29781 (diff) |
librt: declare clock_nanosleep not only for NPTL
Reported-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/time.h b/include/time.h index 785c8f665..c29038b7c 100644 --- a/include/time.h +++ b/include/time.h @@ -356,7 +356,7 @@ extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) # endif /* __UCLIBC_HAS_REALTIME__ */ # if defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__ -# ifdef __UCLIBC_HAS_THREADS_NATIVE__ +# ifdef __UCLIBC_HAS_THREADS__ /* High-resolution sleep with the specified clock. This function is a cancellation point and therefore not marked with @@ -367,7 +367,7 @@ extern int clock_nanosleep (clockid_t __clock_id, int __flags, /* Return clock ID for CPU-time clock. */ extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; -# endif /* __UCLIBC_HAS_THREADS_NATIVE__ */ +# endif /* __UCLIBC_HAS_THREADS__ */ # endif # if defined __UCLIBC_HAS_REALTIME__ |