--- rxvt-unicode/src/ptytty.h 2004/08/15 02:35:27 1.2 +++ rxvt-unicode/src/ptytty.h 2006/01/04 02:01:38 1.5 @@ -1,7 +1,16 @@ #ifndef PTYTTY_H #define PTYTTY_H -#include "rxvt.h" +#include "feature.h" + +#if defined(HAVE_GRANTPT) && defined(HAVE_UNLOCKPT) +# if defined(PTYS_ARE_GETPT) || defined(PTYS_ARE_PTMX) +# define NO_SETOWNER_TTYDEV 1 +# endif +#endif +#if defined(__CYGWIN32__) +# define NO_SETOWNER_TTYDEV 1 +#endif enum rxvt_privaction { IGNORE = 'i', SAVE = 's', RESTORE = 'r' }; @@ -9,7 +18,10 @@ #ifndef RESET_TTY_TO_COMMON_DEFAULTS struct stat savestat; /* original status of our tty */ #endif +#ifndef NO_SETOWNER_TTYDEV void privileges (rxvt_privaction action); + bool saved; +#endif public: int pty; // pty file descriptor; connected to rxvt int tty; // tty file descriptor; connected to child @@ -24,6 +36,7 @@ void close_tty (); bool make_controlling_tty (); + void set_utf8_mode (bool on); }; #endif