This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 3d26835e0cdb1845203d404be6cdfbd3f100ce77
Author: fangpeina <[email protected]>
AuthorDate: Tue Nov 18 22:50:15 2025 +0800

    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 <[email protected]>
---
 system/nxinit/action.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/system/nxinit/action.c b/system/nxinit/action.c
index 81716e571..b677e6760 100644
--- a/system/nxinit/action.c
+++ b/system/nxinit/action.c
@@ -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"

Reply via email to