提交 9596a94a 编写于 作者: M MurphyZhao

[compilers/newlib] 在 syscalls.c 增加 __errno () 函数实现,解决在使用 newlib 编译时 errno 无法重定向到 _rt_errno 的问题

Signed-off-by: NMurphyZhao <d2014zjt@163.com>
上级 ec6118d4
......@@ -27,6 +27,14 @@
/* Reentrant versions of system calls. */
#ifndef _REENT_ONLY
int *
__errno ()
{
return _rt_errno();
}
#endif
int
_close_r(struct _reent *ptr, int fd)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册