aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio64/ftello64.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio64/ftello64.c')
-rw-r--r--newlib/libc/stdio64/ftello64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio64/ftello64.c b/newlib/libc/stdio64/ftello64.c
index 6fb76c3..cd00def 100644
--- a/newlib/libc/stdio64/ftello64.c
+++ b/newlib/libc/stdio64/ftello64.c
@@ -93,7 +93,7 @@ _ftello64_r (struct _reent *ptr,
if (fp->_seek64 == NULL)
{
- ptr->_errno = ESPIPE;
+ _REENT_ERRNO(ptr) = ESPIPE;
_newlib_flockfile_exit(fp);
return (_off64_t) -1;
}