From 11c0b1e39ba31c9ab2731dcd846e2335f778a82e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 21 Jul 2001 05:13:40 +0000 Subject: * sysdeps/generic/device-nrs.h (DEV_TTY_P): Change argument type from `dev_t' (st_rdev value) `const struct stat *'. * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Likewise. * libio/filedoalloc.c (_IO_file_doallocate): Change caller. * sysdeps/mach/hurd/device-nrs.h: New file. --- libio/filedoalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio') diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c index c2e849a..3621e43 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; -- cgit v1.1