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 b0fdffb7f675cfb3bcd8ebc396cd16b4f36b96bd
Author: wangjianyu3 <[email protected]>
AuthorDate: Thu Dec 4 12:30:59 2025 +0800

    system/nxinit: Fix timespec incomplete error in action.h
    
     /.../apps/system/nxinit/action.h:72:19: error: field 'time_run' has 
incomplete type
        72 |   struct timespec time_run;
           |                   ^~~~~~~~
    
    Signed-off-by: wangjianyu3 <[email protected]>
---
 system/nxinit/action.c | 1 -
 system/nxinit/action.h | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/system/nxinit/action.c b/system/nxinit/action.c
index b677e6760..0975682b7 100644
--- a/system/nxinit/action.c
+++ b/system/nxinit/action.c
@@ -29,7 +29,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <time.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <unistd.h>
diff --git a/system/nxinit/action.h b/system/nxinit/action.h
index 672621d13..908b907b4 100644
--- a/system/nxinit/action.h
+++ b/system/nxinit/action.h
@@ -29,6 +29,8 @@
 
 #include <nuttx/list.h>
 
+#include <time.h>
+
 #include "parser.h"
 
 /****************************************************************************

Reply via email to