In case libcobalt is build with -D_TIME_BITS=64 sc_cobalt_sem_timedwait64 will be used instead of sc_cobalt_sem_timedwait.
Signed-off-by: Florian Bezdeka <[email protected]> --- lib/cobalt/semaphore.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cobalt/semaphore.c b/lib/cobalt/semaphore.c index 45705d48f..bff005440 100644 --- a/lib/cobalt/semaphore.c +++ b/lib/cobalt/semaphore.c @@ -373,7 +373,12 @@ COBALT_IMPL(int, sem_timedwait, (sem_t *sem, const struct timespec *abs_timeout) pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype); +#ifdef __USE_TIME_BITS64 + ret = XENOMAI_SYSCALL2(sc_cobalt_sem_timedwait64, _sem, + abs_timeout); +#else ret = XENOMAI_SYSCALL2(sc_cobalt_sem_timedwait, _sem, abs_timeout); +#endif pthread_setcanceltype(oldtype, NULL); -- 2.29.2
