From 676e90cd98092e56199614aebfec9380ce6d63c0 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 27 Sep 2016 11:08:29 +0200 Subject: [PATCH] Define realtime clock for systems not having one --- cmake/posix/px4_impl_posix.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/posix/px4_impl_posix.cmake b/cmake/posix/px4_impl_posix.cmake index 9007886c9e..49647e695e 100644 --- a/cmake/posix/px4_impl_posix.cmake +++ b/cmake/posix/px4_impl_posix.cmake @@ -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()