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:
fangpeina 2025-11-18 22:50:15 +08:00 committed by Xiang Xiao
parent df01c3cbfc
commit 3d26835e0c

View file

@ -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"