From aac7b8d7eb341d4dfbae8b4fce53942933e5d613 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 10 Dec 2018 11:08:12 +0100 Subject: [PATCH] platforms: fix NuttX build --- src/platforms/px4_time.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platforms/px4_time.h b/src/platforms/px4_time.h index ea9713b26d..25ec36ccea 100644 --- a/src/platforms/px4_time.h +++ b/src/platforms/px4_time.h @@ -9,7 +9,13 @@ #define clockid_t int #endif +#if defined(__PX4_POSIX) || defined(__PX4_QURT) +__BEGIN_DECLS __EXPORT int px4_clock_gettime(clockid_t clk_id, struct timespec *tp); +__END_DECLS +#else +#define px4_clock_gettime system_clock_gettime +#endif #if defined(ENABLE_LOCKSTEP_SCHEDULER) || defined(__PX4_QURT)