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 56c9b325c7e87268a0d7342a348b99dc9b6212c7 Author: Marco Casaroli <[email protected]> AuthorDate: Sat Oct 10 23:42:32 2026 +0200 netutils/netcat, system/nxinit: Include the headers that are used. netcat_main.c uses errno and true, and nxinit/parser.c uses errno and the error codes, but neither file includes errno.h, and netcat_main.c does not include stdbool.h. They compile only because other headers include them indirectly. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- netutils/netcat/netcat_main.c | 2 ++ system/nxinit/parser.c | 1 + 2 files changed, 3 insertions(+) diff --git a/netutils/netcat/netcat_main.c b/netutils/netcat/netcat_main.c index 99152d3de..9573505db 100644 --- a/netutils/netcat/netcat_main.c +++ b/netutils/netcat/netcat_main.c @@ -26,7 +26,9 @@ #include <nuttx/config.h> +#include <errno.h> #include <fcntl.h> +#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/system/nxinit/parser.c b/system/nxinit/parser.c index 8930dc7f5..e91e51e0d 100644 --- a/system/nxinit/parser.c +++ b/system/nxinit/parser.c @@ -25,6 +25,7 @@ ****************************************************************************/ #include <ctype.h> +#include <errno.h> #include <fcntl.h> #include <sched.h> #include <stdio.h>
