mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/nxinit: fix compilation errors in action.c
action.c uses clock_gettime(CLOCK_MONOTONIC, ...) but did not pull in <nuttx/clock.h> directly, which fails to build on configurations where the header is not transitively included. Add the missing #include. Signed-off-by: fangpeina <fangpeina@xiaomi.com>
This commit is contained in:
parent
df01c3cbfc
commit
3d26835e0c
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <unistd.h>
|
||||
#include <nuttx/clock.h>
|
||||
|
||||
#include "action.h"
|
||||
#include "builtin.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue