aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/CMakeLists.txt1
-rw-r--r--config/config.h.in1
-rw-r--r--src/nvim/tui/tui.c3
3 files changed, 1 insertions, 4 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index 47683b198c..c3643db205 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -26,7 +26,6 @@ if(NOT HAVE_SYS_WAIT_H AND UNIX)
message(SEND_ERROR "header sys/wait.h is required for Unix")
endif()
check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H)
-check_include_files(termio.h HAVE_TERMIO_H)
check_include_files(termios.h HAVE_TERMIOS_H)
check_include_files(utime.h HAVE_UTIME_H)
check_include_files(sys/uio.h HAVE_SYS_UIO_H)
diff --git a/config/config.h.in b/config/config.h.in
index e70c30e17c..f26b5a50a8 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -43,7 +43,6 @@
#cmakedefine HAVE_STRNCASECMP
#cmakedefine HAVE_SYS_UTSNAME_H
#cmakedefine HAVE_SYS_WAIT_H
-#cmakedefine HAVE_TERMIO_H
#cmakedefine HAVE_TERMIOS_H
#cmakedefine HAVE_UTIME
#cmakedefine HAVE_UTIME_H
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 694d7a7cb4..74187e07c0 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -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];