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
This commit is contained in:
raiden00pl 2024-06-12 10:20:27 +02:00 committed by Xiang Xiao
parent 11ae500fab
commit 3345e0caf9
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include <stdint.h>
#include <time.h>
#include <nuttx/clock.h>
#include <nuttx/fs/ioctl.h>
/****************************************************************************