diff --git a/porting/liteos_m/kernel/src/exit/assert.c b/porting/liteos_m/kernel/src/exit/assert.c index 8be931634a9bcb7e0475003b897d3e3bf51a05c3..dadb23d478cffcf6f190557e442547f30a2f8e97 100644 --- a/porting/liteos_m/kernel/src/exit/assert.c +++ b/porting/liteos_m/kernel/src/exit/assert.c @@ -1,6 +1,7 @@ #include "assert.h" #include "los_context.h" #include "los_debug.h" +#include "los_task.h" void __assert_fail(const char* expr, const char* file, int line, const char* func) { PRINT_ERR("%s:%d: %s: assertion \"%s\" failed\n", file, line, func, expr);