From dd2c3b3f6aff797241fe0f02e02cb1fa082dcdbb Mon Sep 17 00:00:00 2001 From: Fotis Panagiotopoulos Date: Wed, 8 Mar 2023 15:57:31 +0200 Subject: [PATCH] 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 #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 ****************************************************************************/