platforms: fix clock build for macOS (yet again)

This commit is contained in:
Julian Oes
2018-12-09 17:11:11 +01:00
parent 06c5037025
commit 14e5ebbbbc
5 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -9,10 +9,11 @@
#define clockid_t int
#endif
__EXPORT int px4_clock_gettime(clockid_t clk_id, struct timespec *tp);
#if defined(ENABLE_LOCKSTEP_SCHEDULER) || defined(__PX4_QURT)
__BEGIN_DECLS
__EXPORT int px4_clock_gettime(clockid_t clk_id, struct timespec *tp);
__EXPORT int px4_clock_settime(clockid_t clk_id, const struct timespec *tp);
__EXPORT int px4_usleep(useconds_t usec);
@@ -24,7 +25,6 @@ __END_DECLS
#else
#define px4_clock_gettime system_clock_gettime
#define px4_clock_settime system_clock_settime
#define px4_usleep system_usleep
#define px4_sleep system_sleep