build: Do not check for obsolete <termio.h>

This commit is contained in:
Justin M. Keyes
2016-12-24 17:41:06 +01:00
parent cdcf5d2039
commit 432e9e5a2e
3 changed files with 1 additions and 4 deletions

View File

@@ -974,8 +974,7 @@ static void flush_buf(UI *ui, bool toggle_cursor)
static const char *tui_get_stty_erase(void)
{
static char stty_erase[2] = { 0 };
#if defined(ECHOE) && defined(ICANON) \
&& (defined(HAVE_TERMIO_H) || defined(HAVE_TERMIOS_H))
#if defined(ECHOE) && defined(ICANON) && defined(HAVE_TERMIOS_H)
struct termios t;
if (tcgetattr(input_global_fd(), &t) != -1) {
stty_erase[0] = (char)t.c_cc[VERASE];