mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 14:43:33 +08:00
platforms: fix NuttX build
This commit is contained in:
@@ -9,7 +9,13 @@
|
|||||||
#define clockid_t int
|
#define clockid_t int
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__PX4_POSIX) || defined(__PX4_QURT)
|
||||||
|
__BEGIN_DECLS
|
||||||
__EXPORT int px4_clock_gettime(clockid_t clk_id, struct timespec *tp);
|
__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)
|
#if defined(ENABLE_LOCKSTEP_SCHEDULER) || defined(__PX4_QURT)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user