Commit 69aebd4e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Timer: fallback to realtime if monotonic clock is not implemented

parent 09f836d5
...@@ -614,8 +614,13 @@ int vlc_timer_create (vlc_timer_t *id, void (*func) (vlc_timer_t *, void *), ...@@ -614,8 +614,13 @@ int vlc_timer_create (vlc_timer_t *id, void (*func) (vlc_timer_t *, void *),
id->func = func; id->func = func;
id->data = data; id->data = data;
#if (_POSIX_CLOCK_SELECTION >= 0)
if (timer_create (CLOCK_MONOTONIC, &ev, &id->handle)) if (timer_create (CLOCK_MONOTONIC, &ev, &id->handle))
#else
if (timer_create (CLOCK_REALTIME, &ev, &id->handle))
#endif
return errno; return errno;
return 0; return 0;
} }
......
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