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