aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/ftello.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/ftello.c')
-rw-r--r--newlib/libc/stdio/ftello.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/ftello.c b/newlib/libc/stdio/ftello.c
index 3df200c..d62d48a 100644
--- a/newlib/libc/stdio/ftello.c
+++ b/newlib/libc/stdio/ftello.c
@@ -96,7 +96,7 @@ _ftello_r (struct _reent * ptr,
if (fp->_seek == NULL)
{
- ptr->_errno = ESPIPE;
+ _REENT_ERRNO(ptr) = ESPIPE;
_newlib_flockfile_exit (fp);
return (_off_t) -1;
}