openssh-1.2pre16 patch to pty.c for Solaris 2.6

Mark D. Baushke mark.baushke at
Fri Dec 10 04:35:27 EST 1999


While attempting to build openssh for Solaris 2.6, I ran into a minor
problem that should probably be corrected in the next release of
openssh. The file pty.c does not #include <stropts.h> to define I_PUSH
even though I_PUSH is used when HAVE_DEV_PTMX is defined.

 SunOS test01 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-60

 zlib 1.1.3

 rsaref2.0 (plus patch from bugtraq digest 30-Nov-1999)

 openssl 0.9.4

 egd 0.6

 openssh 1.2pre16

Configured with:
 ./configure --prefix=/usr/local \
             --sysconfdir=/etc/ssh \
             --with-tcp-wrapers \

 # using $Id: pty.c,v 1.9 1999/12/06 12:10:12 deraadt Exp $
 gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\" \
     -DSSH_PROGRAM=\"/usr/local/bin/ssh\" \
     -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" \
     -DHAVE_CONFIG_H   -c pty.c -o pty.o
 pty.c: In function `pty_allocate':
 pty.c:115: `I_PUSH' undeclared (first use in this function)
 pty.c:115: (Each undeclared identifier is reported only once
 pty.c:115: for each function it appears in.)
 make: *** [pty.o] Error 1

Possible Patch:

Index: pty.c
--- pty.c~	1999/12/09 09:31:41
+++ pty.c	1999/12/09 16:41:46
@@ -27,6 +27,12 @@
 #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY)
+#ifndef I_PUSH
+#include <stropts.h>
+#endif /* I_PUSH */
+#endif /* HAVE_DEV_PTMX */
 #ifndef O_NOCTTY
 #define O_NOCTTY 0

        -- Mark

More information about the openssh-unix-dev mailing list