diff options
Diffstat (limited to 'sysdeps/unix/telldir.c')
-rw-r--r-- | sysdeps/unix/telldir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/telldir.c b/sysdeps/unix/telldir.c index c319d71df7..2b611b0fca 100644 --- a/sysdeps/unix/telldir.c +++ b/sysdeps/unix/telldir.c @@ -36,8 +36,8 @@ DEFUN(telldir, (dirp), DIR *dirp) return (off_t) -1; } - pos = __lseek(dirp->fd, (off_t) 0, SEEK_CUR); + pos = __lseek(dirp->__fd, (off_t) 0, SEEK_CUR); if (pos == (off_t) -1) return (off_t) -1; - return pos + dirp->size - dirp->offset; + return pos + dirp->__size - dirp->__offset; } |