summaryrefslogtreecommitdiff
path: root/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'pty.c')
-rw-r--r--pty.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/pty.c b/pty.c
index 4f8fbd21b..acd81c9ba 100644
--- a/pty.c
+++ b/pty.c
@@ -14,20 +14,23 @@
14 */ 14 */
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$Id: pty.c,v 1.6 1999/12/07 04:38:32 damien Exp $"); 17RCSID("$Id: pty.c,v 1.7 1999/12/07 21:53:52 damien Exp $");
18 18
19#include "pty.h" 19#include "pty.h"
20#include "ssh.h" 20#include "ssh.h"
21 21
22#ifdef HAVE_PTY_H
23#include <pty.h>
24#endif /* HAVE_PTY_H */
25
26/* Pty allocated with _getpty gets broken if we do I_PUSH:es to it. */ 22/* Pty allocated with _getpty gets broken if we do I_PUSH:es to it. */
27#if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) 23#if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY)
28#undef HAVE_DEV_PTMX 24#undef HAVE_DEV_PTMX
29#endif 25#endif
30 26
27#ifdef HAVE_PTY_H
28# include <pty.h>
29#endif
30#if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H)
31# include <sys/stropts.h>
32#endif
33
31#ifndef O_NOCTTY 34#ifndef O_NOCTTY
32#define O_NOCTTY 0 35#define O_NOCTTY 0
33#endif 36#endif