This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new dd2c3b3f6 nsh: Added conditional include of netinit.
dd2c3b3f6 is described below
commit dd2c3b3f6aff797241fe0f02e02cb1fa082dcdbb
Author: Fotis Panagiotopoulos <[email protected]>
AuthorDate: Wed Mar 8 15:57:31 2023 +0200
nsh: Added conditional include of netinit.
---
nshlib/nsh_init.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nshlib/nsh_init.c b/nshlib/nsh_init.c
index ba4664149..ae05e5bf5 100644
--- a/nshlib/nsh_init.c
+++ b/nshlib/nsh_init.c
@@ -28,12 +28,15 @@
#include <nuttx/symtab.h>
#include "system/readline.h"
-#include "netutils/netinit.h"
#include "nshlib/nshlib.h"
#include "nsh.h"
#include "nsh_console.h"
+#ifdef CONFIG_NSH_NETINIT
+# include "netutils/netinit.h"
+#endif
+
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/