From 9f2b12c2529e0fbe02693c35a82bd35168637c23 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 30 Sep 2013 11:34:04 -0600 Subject: Changes to NSH and readline to permit NSH to work on a platform with no file system --- apps/nshlib/nsh.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/nshlib/nsh.h') diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index 9f1bb40fe..bcad42b1d 100644 --- a/apps/nshlib/nsh.h +++ b/apps/nshlib/nsh.h @@ -68,6 +68,12 @@ # endif #endif +#if CONFIG_NFILE_STREAMS == 0 +# undef CONFIG_NSH_TELNET +# undef CONFIG_NSH_FILE_APPS +# undef CONFIG_NSH_TELNET +#endif + /* Telnetd requires networking support */ #ifndef CONFIG_NET @@ -441,7 +447,9 @@ struct nsh_parser_s #ifndef CONFIG_NSH_DISABLEBG bool np_bg; /* true: The last command executed in background */ #endif +#if CONFIG_NFILE_STREAMS > 0 bool np_redirect; /* true: Output from the last command was re-directed */ +#endif bool np_fail; /* true: The last command failed */ #ifndef CONFIG_NSH_DISABLESCRIPT uint8_t np_ndx; /* Current index into np_st[] */ -- cgit v1.2.3