From 9c8f67dfb8b1707c456d349f922f4fdc14c7d9c2 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 6 Apr 2016 11:18:24 +0200 Subject: [PATCH] platforms: fix build for QURT --- src/platforms/posix/px4_layer/drv_hrt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/posix/px4_layer/drv_hrt.c b/src/platforms/posix/px4_layer/drv_hrt.c index 0e1b533d50..ef01b1ee01 100644 --- a/src/platforms/posix/px4_layer/drv_hrt.c +++ b/src/platforms/posix/px4_layer/drv_hrt.c @@ -131,6 +131,7 @@ int px4_clock_gettime(clockid_t clk_id, struct timespec *tp) #endif +#ifndef __PX4_QURT /* * Get system time in us */ @@ -140,6 +141,7 @@ uint64_t hrt_system_time(void) px4_clock_gettime(CLOCK_MONOTONIC, &ts); return ts_to_abstime(&ts); } +#endif /* * Get absolute time.