aboutsummaryrefslogtreecommitdiff
path: root/login/openpty.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-07-23 17:04:22 -0700
committerRoland McGrath <roland@hack.frob.com>2015-07-23 17:04:22 -0700
commitb301e68e4b027340743d050aa32651039c1cb7bc (patch)
tree25e6d4249781cd1bbd4cdf17bf5d48b76b4c2271 /login/openpty.c
parent42486917fd365275ced60dc2a1c5ca5ed7a0b8f3 (diff)
downloadglibc-b301e68e4b027340743d050aa32651039c1cb7bc.tar
glibc-b301e68e4b027340743d050aa32651039c1cb7bc.tar.gz
glibc-b301e68e4b027340743d050aa32651039c1cb7bc.tar.bz2
glibc-b301e68e4b027340743d050aa32651039c1cb7bc.zip
Make sysdeps/posix bring in login subdir.
Diffstat (limited to 'login/openpty.c')
-rw-r--r--login/openpty.c4
1 files changed, 3 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;