From 2acd975435402e4fc50b4d00fdc9eb3319e00643 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 24 Sep 2023 17:47:54 +0800 Subject: [PATCH] assert: Skip to include arch/board/board.h if CONFIG_ARCH_LEDS=n follow up the change: https://github.com/apache/nuttx/pull/10553 Signed-off-by: Xiang Xiao --- sched/misc/assert.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sched/misc/assert.c b/sched/misc/assert.c index 675527aa61..b3da27d227 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -30,8 +30,9 @@ #include #include #include -#include - +#ifdef CONFIG_ARCH_LEDS +# include +#endif #include #include #include