From 8f26735255a43d9cde0c87bc0269794b390be955 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 17 Feb 2016 11:22:13 +0100 Subject: [PATCH] POSIX: add px4_clock_settime stub for Mac --- src/platforms/posix/px4_layer/drv_hrt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/platforms/posix/px4_layer/drv_hrt.c b/src/platforms/posix/px4_layer/drv_hrt.c index a08c152477..48587c7d93 100644 --- a/src/platforms/posix/px4_layer/drv_hrt.c +++ b/src/platforms/posix/px4_layer/drv_hrt.c @@ -113,6 +113,12 @@ int px4_clock_gettime(clockid_t clk_id, struct timespec *tp) return 0; } +int px4_clock_settime(clockid_t clk_id, struct timespec *tp) +{ + /* do nothing right now */ + return 0; +} + #elif defined(__QURT) #include "dspal_time.h" @@ -121,6 +127,7 @@ int px4_clock_gettime(clockid_t clk_id, struct timespec *tp) { return clock_gettime(clk_id, tp); } + #endif /*