apps/nshlib: Correct error introduced to conditional compilation
This commit is contained in:
parent
e37f4b7004
commit
626f41084b
@ -684,12 +684,13 @@
|
||||
# undef NSH_HAVE_TRIMDIR
|
||||
#endif
|
||||
|
||||
/* nsh_catfile used by cat, ifconfig, ifup/down, df, free, and mount */
|
||||
/* nsh_catfile used by cat, ifconfig, ifup/down, df, free, and mount (with
|
||||
* no arguments).
|
||||
*/
|
||||
|
||||
#if !defined(CONFIG_NSH_DISABLE_CAT) && !defined(CONFIG_NSH_DISABLE_IFCONFIG) && \
|
||||
!defined(CONFIG_NSH_DISABLE_IFUPDOWN) && !defined(CONFIG_NSH_DISABLE_DF) && \
|
||||
!defined(CONFIG_NSH_DISABLE_FREE) && \
|
||||
(!defined(CONFIG_NSH_DISABLE_MOUNT) || !defined(HAVE_MOUNT_LIST))
|
||||
!defined(CONFIG_NSH_DISABLE_FREE) && !defined(HAVE_MOUNT_LIST)
|
||||
# undef NSH_HAVE_CATFILE
|
||||
#endif
|
||||
|
||||
|
@ -42,6 +42,8 @@
|
||||
#include "nsh.h"
|
||||
#include "nsh_console.h"
|
||||
|
||||
#if !defined(CONFIG_NSH_DISABLE_FREE) && defined(NSH_HAVE_CATFILE)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
@ -50,9 +52,9 @@
|
||||
* Name: cmd_free
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_NSH_DISABLE_FREE) && defined(NSH_HAVE_CATFILE)
|
||||
int cmd_free(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
{
|
||||
return nsh_catfile(vtbl, argv[0], CONFIG_NSH_PROC_MOUNTPOINT "/meminfo");
|
||||
}
|
||||
#endif /* !CONFIG_NSH_DISABLE_FREE */
|
||||
|
||||
#endif /* !CONFIG_NSH_DISABLE_FREE && NSH_HAVE_CATFILE */
|
||||
|
Loading…
x
Reference in New Issue
Block a user