nshlib: nsh_netcmds.c should include netlib.h even if neither TCP nor UDP are enabled

This commit is contained in:
Gregory Nutt 2017-04-25 08:25:23 -06:00
parent adc1b27051
commit ad608c705c

View File

@ -83,19 +83,16 @@
#include <nuttx/net/sixlowpan.h> #include <nuttx/net/sixlowpan.h>
#endif #endif
#if defined(CONFIG_NET_ICMP) && defined(CONFIG_NET_ICMP_PING) && \ #ifdef CONFIG_NETUTILS_NETLIB
!defined(CONFIG_DISABLE_SIGNALS)
# include "netutils/netlib.h" # include "netutils/netlib.h"
#endif #endif
#if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0 #if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0
# include "netutils/netlib.h" # include "netutils/netlib.h"
# include "netutils/tftp.h"
#endif #endif
#if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0 #if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0
# ifndef CONFIG_NSH_DISABLE_WGET # ifndef CONFIG_NSH_DISABLE_WGET
# include "netutils/netlib.h"
# include "netutils/webclient.h" # include "netutils/webclient.h"
# endif # endif
#endif #endif