mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fix HRT abstraction for Mac OS
This commit is contained in:
parent
55cd24a4fa
commit
2e10351fcc
@ -86,6 +86,10 @@ static void hrt_unlock(void)
|
||||
#include <sys/time.h>
|
||||
#define CLOCK_REALTIME 0
|
||||
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
#define CLOCK_MONOTONIC 1
|
||||
#endif
|
||||
|
||||
int px4_clock_gettime(clockid_t clk_id, struct timespec *tp)
|
||||
{
|
||||
struct timeval now;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user