From b301e68e4b027340743d050aa32651039c1cb7bc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 23 Jul 2015 17:04:22 -0700 Subject: Make sysdeps/posix bring in login subdir. --- login/openpty.c | 4 +++- login/pty.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'login') diff --git a/login/openpty.c b/login/openpty.c index ad02f6f..c3cef7c 100644 --- a/login/openpty.c +++ b/login/openpty.c @@ -117,10 +117,12 @@ openpty (int *amaster, int *aslave, char *name, } /* XXX Should we ignore errors here? */ - if(termp) + if (termp) tcsetattr (slave, TCSAFLUSH, termp); +#ifdef TIOCSWINSZ if (winp) ioctl (slave, TIOCSWINSZ, winp); +#endif *amaster = master; *aslave = slave; diff --git a/login/pty.h b/login/pty.h index c8745d4..3c052a0 100644 --- a/login/pty.h +++ b/login/pty.h @@ -21,6 +21,9 @@ #include +struct termios; +struct winsize; + #include #include -- cgit v1.1