From 16c9068d5fcba68849b6ae227aa154bf49d0f200 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 10 Sep 2021 22:28:15 +0800 Subject: [PATCH] nsh: fix compile break about closing CONFIG_NSH_DISABLEBG Signed-off-by: Jiuzhu Dong --- nshlib/nsh_builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_builtin.c b/nshlib/nsh_builtin.c index f5337f7f9..01839f54b 100644 --- a/nshlib/nsh_builtin.c +++ b/nshlib/nsh_builtin.c @@ -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 */