]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- Runtime error fix for HPUX from Otmar Stahl
authorDamien Miller <djm@mindrot.org>
Fri, 17 Mar 2000 12:58:59 +0000 (23:58 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 17 Mar 2000 12:58:59 +0000 (23:58 +1100)
   <O.Stahl@lsw.uni-heidelberg.de>

ChangeLog
pty.c

index ba49585fe80e71ac9ef2b68c7fbd634eca13c644..e8f93ebbe951a0e2bf4cb9ecf9d11ab02555bc14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
      pedantic: signed vs. unsigned, void*-arithm, etc
    - [ssh.1 sshd.8]
      Various cleanups and standardizations.
+ - Runtime error fix for HPUX from Otmar Stahl 
+   <O.Stahl@lsw.uni-heidelberg.de>
 
 20000316
  - Fixed configure not passing LDFLAGS to Solaris. Report from David G. 
diff --git a/pty.c b/pty.c
index 03a7548897ab0023a2eebf4bdec15ef95308243b..c34f1f5dcf63bd905f3d1ada3ae8d88832e78ef2 100644 (file)
--- 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 <util.h>
@@ -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