From 08b2fee0fbb5edb5bac71c9a82663400582108e5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 29 Apr 2017 08:41:55 -0600 Subject: [PATCH] NSH: Needs to include tftp.h if TFTP no disabled --- nshlib/nsh_netcmds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index 4ca8a1293..7f1f8c943 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -89,6 +89,9 @@ #if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0 # include "netutils/netlib.h" +# if !defined(CONFIG_NSH_DISABLE_GET) || !defined(CONFIG_NSH_DISABLE_PUT) +# include "netutils/tftp.h" +# endif #endif #if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0