diff options
author | Damien Miller <djm@mindrot.org> | 2000-03-17 23:58:59 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-03-17 23:58:59 +1100 |
commit | e37ac5ae1797f955ba91c4665aa9f9b0fa3663e2 (patch) | |
tree | aa8d08a426ac8ba57754aea5a1bc7bdf7d29b6a0 /pty.c | |
parent | 7684ee17ee96426970c00cb44d9d00b6611b9a57 (diff) |
- Runtime error fix for HPUX from Otmar Stahl
<O.Stahl@lsw.uni-heidelberg.de>
Diffstat (limited to 'pty.c')
-rw-r--r-- | pty.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$Id: pty.c,v 1.16 2000/03/09 11:31:13 damien Exp $"); | 17 | RCSID("$Id: pty.c,v 1.17 2000/03/17 12:58:59 damien Exp $"); |
18 | 18 | ||
19 | #ifdef HAVE_UTIL_H | 19 | #ifdef HAVE_UTIL_H |
20 | # include <util.h> | 20 | # include <util.h> |
@@ -123,8 +123,10 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) | |||
123 | error("ioctl I_PUSH ptem: %.100s", strerror(errno)); | 123 | error("ioctl I_PUSH ptem: %.100s", strerror(errno)); |
124 | if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) | 124 | if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) |
125 | error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); | 125 | error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); |
126 | #ifndef _HPUX_SOURCE | ||
126 | if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) | 127 | if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) |
127 | error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); | 128 | error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); |
129 | #endif | ||
128 | return 1; | 130 | return 1; |
129 | #else /* HAVE_DEV_PTMX */ | 131 | #else /* HAVE_DEV_PTMX */ |
130 | #ifdef HAVE_DEV_PTS_AND_PTC | 132 | #ifdef HAVE_DEV_PTS_AND_PTC |