- Runtime error fix for HPUX from Otmar Stahl

<O.Stahl@lsw.uni-heidelberg.de>
This commit is contained in:
Damien Miller 2000-03-17 23:58:59 +11:00
parent 7684ee17ee
commit e37ac5ae17
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,8 @@
pedantic: signed vs. unsigned, void*-arithm, etc pedantic: signed vs. unsigned, void*-arithm, etc
- [ssh.1 sshd.8] - [ssh.1 sshd.8]
Various cleanups and standardizations. Various cleanups and standardizations.
- Runtime error fix for HPUX from Otmar Stahl
<O.Stahl@lsw.uni-heidelberg.de>
20000316 20000316
- Fixed configure not passing LDFLAGS to Solaris. Report from David G. - Fixed configure not passing LDFLAGS to Solaris. Report from David G.

4
pty.c
View File

@ -14,7 +14,7 @@
*/ */
#include "includes.h" #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 #ifdef HAVE_UTIL_H
# include <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)); error("ioctl I_PUSH ptem: %.100s", strerror(errno));
if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); error("ioctl I_PUSH ldterm: %.100s", strerror(errno));
#ifndef _HPUX_SOURCE
if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); error("ioctl I_PUSH ttcompat: %.100s", strerror(errno));
#endif
return 1; return 1;
#else /* HAVE_DEV_PTMX */ #else /* HAVE_DEV_PTMX */
#ifdef HAVE_DEV_PTS_AND_PTC #ifdef HAVE_DEV_PTS_AND_PTC