From ad608c705c0973453066a9ea01c3a368d4cee0f7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 25 Apr 2017 08:25:23 -0600 Subject: [PATCH] nshlib: nsh_netcmds.c should include netlib.h even if neither TCP nor UDP are enabled --- nshlib/nsh_netcmds.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index 35f19354e..4ca8a1293 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -83,19 +83,16 @@ #include #endif -#if defined(CONFIG_NET_ICMP) && defined(CONFIG_NET_ICMP_PING) && \ - !defined(CONFIG_DISABLE_SIGNALS) +#ifdef CONFIG_NETUTILS_NETLIB # include "netutils/netlib.h" #endif #if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0 # include "netutils/netlib.h" -# include "netutils/tftp.h" #endif #if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0 # ifndef CONFIG_NSH_DISABLE_WGET -# include "netutils/netlib.h" # include "netutils/webclient.h" # endif #endif