mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 01:51:35 +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)
|
if (DARWIN_VERSION LESS 16)
|
||||||
list(APPEND added_definitions
|
list(APPEND added_definitions
|
||||||
-DCLOCK_MONOTONIC=1
|
-DCLOCK_MONOTONIC=1
|
||||||
|
-DCLOCK_REALTIME=0
|
||||||
-D__PX4_APPLE_LEGACY
|
-D__PX4_APPLE_LEGACY
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user