aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/reent/stat64r.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent/stat64r.c')
-rw-r--r--newlib/libc/reent/stat64r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/reent/stat64r.c b/newlib/libc/reent/stat64r.c
index b64736e..160d08e 100644
--- a/newlib/libc/reent/stat64r.c
+++ b/newlib/libc/reent/stat64r.c
@@ -53,7 +53,7 @@ _stat64_r (struct _reent *ptr,
errno = 0;
if ((ret = _stat64 (file, pstat)) == -1 && errno != 0)
- ptr->_errno = errno;
+ _REENT_ERRNO(ptr) = errno;
return ret;
}