aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/reent/closer.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent/closer.c')
-rw-r--r--newlib/libc/reent/closer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/reent/closer.c b/newlib/libc/reent/closer.c
index deb34b0..2d72b2a 100644
--- a/newlib/libc/reent/closer.c
+++ b/newlib/libc/reent/closer.c
@@ -45,7 +45,7 @@ _close_r (ptr, fd)
errno = 0;
if ((ret = _close (fd)) == -1 && errno != 0)
- ptr->_errno = errno;
+ _REENT_ERRNO(ptr) = errno;
return ret;
}