diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-07-23 17:04:22 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-07-23 17:04:22 -0700 |
commit | b301e68e4b027340743d050aa32651039c1cb7bc (patch) | |
tree | 25e6d4249781cd1bbd4cdf17bf5d48b76b4c2271 /login | |
parent | 42486917fd365275ced60dc2a1c5ca5ed7a0b8f3 (diff) | |
download | glibc-b301e68e4b027340743d050aa32651039c1cb7bc.tar glibc-b301e68e4b027340743d050aa32651039c1cb7bc.tar.gz glibc-b301e68e4b027340743d050aa32651039c1cb7bc.tar.bz2 glibc-b301e68e4b027340743d050aa32651039c1cb7bc.zip |
Make sysdeps/posix bring in login subdir.
Diffstat (limited to 'login')
-rw-r--r-- | login/openpty.c | 4 | ||||
-rw-r--r-- | login/pty.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/login/openpty.c b/login/openpty.c index ad02f6f5ac..c3cef7cf87 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 c8745d48bd..3c052a043a 100644 --- a/login/pty.h +++ b/login/pty.h @@ -21,6 +21,9 @@ #include <features.h> +struct termios; +struct winsize; + #include <termios.h> #include <sys/ioctl.h> |