X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ftermsbr.c;h=b620e2c14d3212e803b8687236d4cbf0085d87f8;hb=7e421e1fd5cf1c4ce33edc005fa63784d9c5a2e6;hp=defc93fc6cca85851fd076e45f7a489e4c0e5a5f;hpb=cebc12618d19409a25e332eef13e825df15a9bc2;p=mmh diff --git a/uip/termsbr.c b/uip/termsbr.c index defc93f..b620e2c 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -8,15 +8,7 @@ #include -#ifdef HAVE_TERMIOS_H -# include -#else -# ifdef HAVE_TERMIO_H -# include -# else -# include -# endif -#endif +#include #ifdef HAVE_TERMCAP_H # include @@ -74,16 +66,7 @@ read_termcap(void) char termbuf[TXTSIZ]; #endif -#ifdef HAVE_TERMIOS_H struct termios tio; -#else -# ifdef HAVE_TERMIO_H - struct termio tio; -# else - struct sgttyb tio; -# endif -#endif - static int inited = 0; if (inited++) @@ -103,17 +86,7 @@ read_termcap(void) return; #endif -#ifdef HAVE_TERMIOS_H speedcode = cfgetospeed(&tio); -#else -# ifdef HAVE_TERMIO_H - speedcode = ioctl(fileno(stdout), TCGETA, &tio) != NOTOK ? - tio.c_cflag & CBAUD : 0; -# else - speedcode = ioctl(fileno(stdout), TIOCGETP, (char *) &tio) != NOTOK ? - tio.sg_ospeed : 0; -# endif -#endif if (!initCO && (CO = tgetnum("co")) <= 0) CO = 80;