platforms: fix NuttX build

This commit is contained in:
Julian Oes 2018-12-10 11:08:12 +01:00
parent 14e5ebbbbc
commit aac7b8d7eb
1 changed files with 6 additions and 0 deletions

View File

@ -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)