platforms: fix clock build for macOS (yet again)

This commit is contained in:
Julian Oes
2018-12-09 17:11:11 +01:00
parent 06c5037025
commit 14e5ebbbbc
5 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -379,8 +379,8 @@ extern "C" {
// Get the current time
struct timespec ts;
// px4_sem_timedwait is implemented using CLOCK_MONOTONIC,
// at least for lockstep, on Qurt and on Linux.
// Note, we can't actually use CLOCK_MONOTONIC on macOS
// but that's hidden and implemented in px4_clock_gettime.
px4_clock_gettime(CLOCK_MONOTONIC, &ts);
// Calculate an absolute time in the future