From 3345e0caf91fd90609c5642cbddc8a2fcd57498f Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Wed, 12 Jun 2024 10:20:27 +0200 Subject: [PATCH] include/nuttx/timers/oneshot.h: fix gcc14 errors /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/timers/oneshot.h: In function 'oneshot_max_delay': /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/timers/oneshot.h:272:3: error: implicit declaration of function 'timespec_from_tick' [-Wimplicit-function-declaration] 272 | timespec_from_tick(ts, tick); | ^~~~~~~~~~~~~~~~~~ /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/timers/oneshot.h: In function 'oneshot_start': /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/timers/oneshot.h:285:10: error: implicit declaration of function 'timespec_to_tick'; did you mean 'timespec_get'? [-Wimplicit-function-declaration] 285 | tick = timespec_to_tick(ts); | ^~~~~~~~~~~~~~~~ | timespec_get --- include/nuttx/timers/oneshot.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nuttx/timers/oneshot.h b/include/nuttx/timers/oneshot.h index 6c486ca1cf..848d517c28 100644 --- a/include/nuttx/timers/oneshot.h +++ b/include/nuttx/timers/oneshot.h @@ -33,6 +33,7 @@ #include #include +#include #include /****************************************************************************