From 5c552cb924e72517c43ed9e83a28b4e303dc64e7 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 b7f5fc666f..9720bc2059 100644 --- a/options/posix/generic/pthread-stubs.cpp +++ b/options/posix/generic/pthread-stubs.cpp @@ -1420,6 +1420,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; }