aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/reent/fcntlr.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent/fcntlr.c')
-rw-r--r--newlib/libc/reent/fcntlr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/reent/fcntlr.c b/newlib/libc/reent/fcntlr.c
index cd19d22..f60aa09 100644
--- a/newlib/libc/reent/fcntlr.c
+++ b/newlib/libc/reent/fcntlr.c
@@ -49,7 +49,7 @@ _fcntl_r (struct _reent *ptr,
errno = 0;
if ((ret = _fcntl (fd, cmd, arg)) == -1 && errno != 0)
- ptr->_errno = errno;
+ _REENT_ERRNO(ptr) = errno;
return ret;
}