Skip to content

Commit 20276b0

Browse files
authored
clock_gettime: check posix timer support (#156)
The recent changes in arduino pico breaks the check. Fix it by checking the _POSIX_TIMERS not defined or zero. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
1 parent 2f2a053 commit 20276b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

platform_code/arduino/clock_gettime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <sys/time.h>
44
#define micro_rollover_useconds 4294967295
55

6-
#ifndef _POSIX_TIMERS
6+
#if !defined(_POSIX_TIMERS) || !_POSIX_TIMERS
77

88
extern "C" int clock_gettime(clockid_t unused, struct timespec *tp)
99
{

0 commit comments

Comments
 (0)