if Unix98 PTY support not compiled in, gcc probably (I do not tested
it) should print some warnings -- variable `i' is used only if Unix98
PTY compiled in and the same applies for label init_dev_done. Obvious
patches below (not tested).
--- pty.c-orig Sun Aug 16 20:35:33 1998
+++ pty.c Wed Aug 26 23:25:37 1998
@@ -336,7 +336,9 @@
__initfunc(int pty_init(void))
{
+#ifdef CONFIG_UNIX98_PTYS
int i;
+#endif
/* Traditional BSD devices */
--- tty_io.c-orig Wed Aug 26 12:33:57 1998
+++ tty_io.c Wed Aug 26 23:34:20 1998
@@ -1269,7 +1269,9 @@
return retval;
/* N.B. this error exit may leave filp->f_flags with O_NONBLOCK set */
+#ifdef CONFIG_UNIX98_PTYS
init_dev_done:
+#endif
filp->private_data = tty;
check_tty_count(tty, "tty_open");
if (tty->driver.type == TTY_DRIVER_TYPE_PTY &&
-- Pavel Janík ml. Pavel.Janik@inet.cz- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html