sched: fix compile error when SCHED_CRITMONITOR is enabled

Compilation error occurs after SCHED_CRITMONITOR is enabled
sched/sched_critmonitor.c:315: undefined reference to `serr'

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-03-29 18:17:45 +08:00 committed by Alan Carvalho de Assis
parent b6397cd8d6
commit 700fd265ee
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sched.h> #include <sched.h>
#include <assert.h> #include <assert.h>
#include <debug.h>
#include "sched/sched.h" #include "sched/sched.h"

View File

@ -30,6 +30,7 @@
#include <unistd.h> #include <unistd.h>
#include <sched.h> #include <sched.h>
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>