添加rtthread相关代码
This commit is contained in:
20
riscv/rtthread/components/libc/compilers/musl/syscalls.c
Executable file
20
riscv/rtthread/components/libc/compilers/musl/syscalls.c
Executable file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2022-11-18 Meco Man first version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
|
||||
int *__errno_location(void)
|
||||
{
|
||||
return _rt_errno();
|
||||
}
|
||||
int *___errno_location(void)
|
||||
{
|
||||
return _rt_errno();
|
||||
}
|
||||
Reference in New Issue
Block a user