aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fpurge.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fpurge.c')
-rw-r--r--newlib/libc/stdio/fpurge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fpurge.c b/newlib/libc/stdio/fpurge.c
index 2e4f61e..93ac0e2 100644
--- a/newlib/libc/stdio/fpurge.c
+++ b/newlib/libc/stdio/fpurge.c
@@ -72,7 +72,7 @@ _fpurge_r (struct _reent *ptr,
t = fp->_flags;
if (!t)
{
- ptr->_errno = EBADF;
+ _REENT_ERRNO(ptr) = EBADF;
_newlib_flockfile_exit (fp);
return EOF;
}