diff options
author | Yann Sionneau <yann@sionneau.net> | 2023-06-12 09:47:40 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-06-12 10:46:43 +0200 |
commit | a04b282ef264c58aadff623ff648a67aeeb9d876 (patch) | |
tree | cec98eb4aab69c8be4d2ae57a27223cb284db2b7 | |
parent | b19f8f360970ffd0c1a6ac41e07c66dc39790b16 (diff) |
Revert "librt: avoid compilation error"
This reverts commit 08d46f1ce21e4ec51b2b1626beeaea6cbe7fdc6b.
Signed-off-by: Yann Sionneau <yann@sionneau.net>
-rw-r--r-- | librt/clock_nanosleep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/librt/clock_nanosleep.c b/librt/clock_nanosleep.c index 1515cf5b0..4cf1e06b4 100644 --- a/librt/clock_nanosleep.c +++ b/librt/clock_nanosleep.c @@ -36,9 +36,9 @@ clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req, if (clock_id == CLOCK_PROCESS_CPUTIME_ID) clock_id = MAKE_PROCESS_CPUCLOCK (0, CPUCLOCK_SCHED); -#if defined(SINGLE_THREAD_P) + if (SINGLE_THREAD_P) r = INTERNAL_SYSCALL (clock_nanosleep, err, 4, clock_id, flags, req, rem); -#else + else { int oldstate = LIBC_CANCEL_ASYNC (); @@ -47,7 +47,6 @@ clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req, LIBC_CANCEL_RESET (oldstate); } -#endif return (INTERNAL_SYSCALL_ERROR_P (r, err) ? INTERNAL_SYSCALL_ERRNO (r, err) : 0); |