[compilers/newlib] 在 syscalls.c 增加 __errno () 函数实现,解决在使用 newlib 编译时 errno 无法重定向到 _rt_errno 的问题
Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
parent
ec6118d46a
commit
9596a94a8b
@ -27,6 +27,14 @@
|
|||||||
|
|
||||||
/* Reentrant versions of system calls. */
|
/* Reentrant versions of system calls. */
|
||||||
|
|
||||||
|
#ifndef _REENT_ONLY
|
||||||
|
int *
|
||||||
|
__errno ()
|
||||||
|
{
|
||||||
|
return _rt_errno();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
_close_r(struct _reent *ptr, int fd)
|
_close_r(struct _reent *ptr, int fd)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user