patch-1.3.99 linux/drivers/char/pty.c

Next file: linux/drivers/char/random.c
Previous file: linux/drivers/char/psaux.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.98/linux/drivers/char/pty.c linux/drivers/char/pty.c
@@ -181,7 +181,9 @@
 
 int pty_open(struct tty_struct *tty, struct file * filp)
 {
+#if PTY_SLAVE_WAITS_ON_OPEN
 	struct wait_queue wait = { current, NULL };
+#endif
 	int	retval;
 	int	line;
 	struct	pty_struct *pty;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this