From e37ac5ae1797f955ba91c4665aa9f9b0fa3663e2 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 17 Mar 2000 23:58:59 +1100 Subject: - Runtime error fix for HPUX from Otmar Stahl --- pty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pty.c') diff --git a/pty.c b/pty.c index 03a754889..c34f1f5dc 100644 --- a/pty.c +++ b/pty.c @@ -14,7 +14,7 @@ */ #include "includes.h" -RCSID("$Id: pty.c,v 1.16 2000/03/09 11:31:13 damien Exp $"); +RCSID("$Id: pty.c,v 1.17 2000/03/17 12:58:59 damien Exp $"); #ifdef HAVE_UTIL_H # include @@ -123,8 +123,10 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) error("ioctl I_PUSH ptem: %.100s", strerror(errno)); if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); +#ifndef _HPUX_SOURCE if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); +#endif return 1; #else /* HAVE_DEV_PTMX */ #ifdef HAVE_DEV_PTS_AND_PTC -- cgit v1.2.3