summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/filedoalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c
index c2e849a736..3621e43073 100644
--- a/libio/filedoalloc.c
+++ b/libio/filedoalloc.c
@@ -95,7 +95,7 @@ _IO_file_doallocate (fp)
/* Possibly a tty. */
if (
#ifdef DEV_TTY_P
- DEV_TTY_P (st.st_rdev) ||
+ DEV_TTY_P (&st) ||
#endif
isatty (fp->_fileno))
fp->_flags |= _IO_LINE_BUF;