diff options
author | Damien Miller <djm@mindrot.org> | 1999-12-08 08:53:52 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-12-08 08:53:52 +1100 |
commit | fce1648681a20b99f569d4bfd9335bc4a956b119 (patch) | |
tree | fd2c365c734548c48e3f37973b8af715824ad5eb /pty.c | |
parent | 05ec5c64251075aa40c74842a429546383d9b354 (diff) | |
download | openssh-git-fce1648681a20b99f569d4bfd9335bc4a956b119.tar.gz |
- Compile fix for Solaris with /dev/ptmx from
David Agraz <dagraz@jahoopa.com>
Diffstat (limited to 'pty.c')
-rw-r--r-- | pty.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -14,20 +14,23 @@ */ #include "includes.h" -RCSID("$Id: pty.c,v 1.6 1999/12/07 04:38:32 damien Exp $"); +RCSID("$Id: pty.c,v 1.7 1999/12/07 21:53:52 damien Exp $"); #include "pty.h" #include "ssh.h" -#ifdef HAVE_PTY_H -#include <pty.h> -#endif /* HAVE_PTY_H */ - /* Pty allocated with _getpty gets broken if we do I_PUSH:es to it. */ #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) #undef HAVE_DEV_PTMX #endif +#ifdef HAVE_PTY_H +# include <pty.h> +#endif +#if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H) +# include <sys/stropts.h> +#endif + #ifndef O_NOCTTY #define O_NOCTTY 0 #endif |