From a7902dd079028714dcfb27a9eeeec434f22326bb Mon Sep 17 00:00:00 2001 From: Qwinci <32550582+Qwinci@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:11:53 +0300 Subject: [PATCH] options/posix: Implement better pthread_getcpuclockid stub --- options/posix/generic/pthread-stubs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/options/posix/generic/pthread-stubs.cpp b/options/posix/generic/pthread-stubs.cpp index 7c60cc2900..608b83f9e1 100644 --- a/options/posix/generic/pthread-stubs.cpp +++ b/options/posix/generic/pthread-stubs.cpp @@ -1414,6 +1414,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rw) { } int pthread_getcpuclockid(pthread_t, clockid_t *) { - __ensure(!"Not implemented"); - __builtin_unreachable(); + mlibc::infoLogger() << "mlibc: pthread_getcpuclockid() always returns ENOENT" + << frg::endlog; + return ENOENT; }