--- rxvt-unicode/src/init.h 2007/01/20 00:45:30 1.11 +++ rxvt-unicode/src/init.h 2007/10/18 09:11:43 1.14 @@ -4,42 +4,14 @@ #undef CERASE /* TODO */ #define CERASE '\010' /* ^H */ -#ifdef HAVE_XSETLOCALE -# define X_LOCALE -# include -#else -# ifdef HAVE_SETLOCALE -# include -# endif -#endif /* HAVE_XLOCALE */ - -#ifdef TTY_GID_SUPPORT -# include -#endif - /* ways to deal with getting/setting termios structure */ /* termios interface */ -# ifdef TCSANOW /* POSIX */ -# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) -# define SET_TERMIOS(fd,tios) \ - cfsetospeed (tios, BAUDRATE), \ - cfsetispeed (tios, BAUDRATE), \ - tcsetattr (fd, TCSANOW, tios) -# else -# ifdef TIOCSETA -# define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios) -# define SET_TERMIOS(fd,tios) \ - tios->c_cflag |= BAUDRATE, \ - ioctl (fd, TIOCSETA, tios) -# else -# define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios) -# define SET_TERMIOS(fd,tios) \ - tios->c_cflag |= BAUDRATE, \ - ioctl (fd, TCSETS, tios) -# endif -# endif -# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios) +#define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) +#define SET_TERMIOS(fd,tios) \ + cfsetospeed (tios, BAUDRATE), \ + cfsetispeed (tios, BAUDRATE), \ + tcsetattr (fd, TCSANOW, tios) /* use the fastest baud-rate */ #ifdef B38400