nsh: fix compile break about closing CONFIG_NSH_DISABLEBG

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-09-10 22:28:15 +08:00 committed by Xiang Xiao
parent 293b89af44
commit 16c9068d5f

View File

@ -224,7 +224,7 @@ int nsh_builtin(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
#if !defined(CONFIG_SCHED_WAITPID) || !defined(CONFIG_NSH_DISABLEBG)
{
# ifdef CONFIG_SCHED_CHILD_STATUS
#if !defined(CONFIG_NSH_DISABLEBG) && defined(CONFIG_SCHED_CHILD_STATUS)
/* Restore the old actions */