diff options
Diffstat (limited to 'newlib/libc/stdio/refill.c')
-rw-r--r-- | newlib/libc/stdio/refill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/refill.c b/newlib/libc/stdio/refill.c index 91e79e8..7bd3880 100644 --- a/newlib/libc/stdio/refill.c +++ b/newlib/libc/stdio/refill.c @@ -56,7 +56,7 @@ __srefill_r (struct _reent * ptr, { if ((fp->_flags & __SRW) == 0) { - ptr->_errno = EBADF; + _REENT_ERRNO(ptr) = EBADF; fp->_flags |= __SERR; return EOF; } |