summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nshlib/nsh_command.c')
-rw-r--r--apps/nshlib/nsh_command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_command.c b/apps/nshlib/nsh_command.c
index ea028d463..996383694 100644
--- a/apps/nshlib/nsh_command.c
+++ b/apps/nshlib/nsh_command.c
@@ -344,6 +344,9 @@ static const struct cmdmap_s g_cmdmap[] =
# ifndef CONFIG_NSH_DISABLE_RM
{ "rm", cmd_rm, 2, 2, "<file-path>" },
# endif
+# endif
+
+#if CONFIG_NFILE_DESCRIPTORS > 0
# ifndef CONFIG_NSH_DISABLE_RMDIR
{ "rmdir", cmd_rmdir, 2, 2, "<dir-path>" },
# endif