diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-30 11:34:04 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-30 11:34:04 -0600 |
commit | 9f2b12c2529e0fbe02693c35a82bd35168637c23 (patch) | |
tree | 45b4abb98431d8a20f1b77a56aee77cbc9929dc8 /apps/nshlib/nsh.h | |
parent | f30cf5dcb7a09c5facd0329b21640005c19b541f (diff) | |
download | nuttx-9f2b12c2529e0fbe02693c35a82bd35168637c23.tar.gz nuttx-9f2b12c2529e0fbe02693c35a82bd35168637c23.tar.bz2 nuttx-9f2b12c2529e0fbe02693c35a82bd35168637c23.zip |
Changes to NSH and readline to permit NSH to work on a platform with no file system
Diffstat (limited to 'apps/nshlib/nsh.h')
-rw-r--r-- | apps/nshlib/nsh.h | 8 |
1 files changed, 8 insertions, 0 deletions
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[] */ |