mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:26:24 +08:00
Define realtime clock for systems not having one
This commit is contained in:
committed by
Lorenz Meier
parent
adf56050b9
commit
676e90cd98
@@ -206,6 +206,7 @@ if(UNIX AND APPLE)
|
||||
if (DARWIN_VERSION LESS 16)
|
||||
list(APPEND added_definitions
|
||||
-DCLOCK_MONOTONIC=1
|
||||
-DCLOCK_REALTIME=0
|
||||
-D__PX4_APPLE_LEGACY
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user