Skip to content

Commit

Permalink
clock_gettime: check posix timer support (#156)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hippo5329 authored Oct 3, 2024
1 parent 2f2a053 commit 20276b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform_code/arduino/clock_gettime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <sys/time.h>
#define micro_rollover_useconds 4294967295

#ifndef _POSIX_TIMERS
#if !defined(_POSIX_TIMERS) || !_POSIX_TIMERS

extern "C" int clock_gettime(clockid_t unused, struct timespec *tp)
{
Expand Down

0 comments on commit 20276b0

Please sign in to comment.