mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 08:47:35 +08:00
platforms: fix clock build for macOS (yet again)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user