diff options
Diffstat (limited to 'newlib/libc/reent/statr.c')
-rw-r--r-- | newlib/libc/reent/statr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/reent/statr.c b/newlib/libc/reent/statr.c index 9388e02..99453e7 100644 --- a/newlib/libc/reent/statr.c +++ b/newlib/libc/reent/statr.c @@ -53,7 +53,7 @@ _stat_r (struct _reent *ptr, errno = 0; if ((ret = _stat (file, pstat)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } |