summaryrefslogtreecommitdiff
path: root/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'pty.c')
-rw-r--r--pty.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pty.c b/pty.c
index 04004d20f..cdf1d1281 100644
--- a/pty.c
+++ b/pty.c
@@ -117,12 +117,15 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
117 return 0; 117 return 0;
118 } 118 }
119#ifndef HAVE_CYGWIN 119#ifndef HAVE_CYGWIN
120 /* Push the appropriate streams modules, as described in Solaris pts(7). */ 120 /*
121 * Push the appropriate streams modules, as described in Solaris pts(7).
122 * HP-UX pts(7) doesn't have ttcompat module.
123 */
121 if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) 124 if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
122 error("ioctl I_PUSH ptem: %.100s", strerror(errno)); 125 error("ioctl I_PUSH ptem: %.100s", strerror(errno));
123 if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) 126 if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
124 error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); 127 error("ioctl I_PUSH ldterm: %.100s", strerror(errno));
125#ifndef _HPUX_SOURCE 128#ifndef __hpux
126 if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) 129 if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
127 error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); 130 error("ioctl I_PUSH ttcompat: %.100s", strerror(errno));
128#endif 131#endif