Commit e67f3a5d authored by Song Chen's avatar Song Chen Committed by Jan Kiszka
Browse files

y2038: lib/cobalt/internal: dispatch event_wait



If sizeof time_t bigger than 4, which means glibc supports
64bit timespec, go to event_wait64.

otherwise, go to original event_wait.
Signed-off-by: default avatarSong Chen <chensong_2000@189.cn>
Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 0760c45b
......@@ -483,8 +483,13 @@ int cobalt_event_wait(cobalt_event_t *event,
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
#ifdef __USE_TIME_BITS64
ret = XENOMAI_SYSCALL5(sc_cobalt_event_wait64,
event, bits, bits_r, mode, timeout);
#else
ret = XENOMAI_SYSCALL5(sc_cobalt_event_wait,
event, bits, bits_r, mode, timeout);
#endif
pthread_setcanceltype(oldtype, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment