From fc8c425cc0607a0e58b3a0978a52ae290ec916ed Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Tue, 4 Jul 2023 17:08:20 +0800 Subject: [PATCH] Fix dependents of nsh_foreach_direntry Signed-off-by: wangjianyu3 --- nshlib/nsh.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nshlib/nsh.h b/nshlib/nsh.h index 9690f38ba..b710154e7 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -571,9 +571,14 @@ # undef NSH_HAVE_READFILE #endif -/* nsh_foreach_direntry used by the ls and ps and fdinfo commands */ +/* nsh_foreach_direntry used by the commands: + * ls, ps, fdinfo, rptun, pmconfig + */ -#if defined(CONFIG_NSH_DISABLE_LS) && defined(CONFIG_NSH_DISABLE_PS) && defined(CONFIG_NSH_DISABLE_FDINFO) +#if defined(CONFIG_NSH_DISABLE_LS) && defined(CONFIG_NSH_DISABLE_PS) && \ + defined(CONFIG_NSH_DISABLE_FDINFO) && \ + defined(CONFIG_NSH_DISABLE_RPTUN) && \ + defined(CONFIG_NSH_DISABLE_PMCONFIG) # undef NSH_HAVE_FOREACH_DIRENTRY #endif