diff --git a/vdso/vdso.cc b/vdso/vdso.cc index 3b6653b5d..524c32989 100644 --- a/vdso/vdso.cc +++ b/vdso/vdso.cc @@ -29,12 +29,18 @@ int __common_clock_gettime(clockid_t clock, struct timespec* ts) { int ret; switch (clock) { + case CLOCK_REALTIME_COARSE: + // Fallthrough, CLOCK_REALTIME_COARSE is an alias for CLOCK_REALTIME case CLOCK_REALTIME: ret = ClockRealtime(ts); break; case CLOCK_BOOTTIME: // Fallthrough, CLOCK_BOOTTIME is an alias for CLOCK_MONOTONIC + case CLOCK_MONOTONIC_RAW: + // Fallthrough, CLOCK_MONOTONIC_RAW is an alias for CLOCK_MONOTONIC + case CLOCK_MONOTONIC_COARSE: + // Fallthrough, CLOCK_MONOTONIC_COARSE is an alias for CLOCK_MONOTONIC case CLOCK_MONOTONIC: ret = ClockMonotonic(ts); break;