mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
POSIX: add defines system clock calls
This commit is contained in:
parent
98ae0186e9
commit
d1514cd667
@ -73,6 +73,9 @@
|
||||
#define system_sleep sleep
|
||||
#pragma GCC poison sleep
|
||||
|
||||
#define system_clock_gettime clock_gettime
|
||||
#define system_clock_settime clock_settime
|
||||
|
||||
#include <pthread.h>
|
||||
#define system_pthread_cond_timedwait pthread_cond_timedwait
|
||||
// We can't poison pthread_cond_timedwait because it seems to be used in the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user