Fix HRT abstraction for Mac OS

This commit is contained in:
Lorenz Meier 2015-12-06 11:40:22 +01:00
parent 55cd24a4fa
commit 2e10351fcc

View File

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