mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
build: Do not check for obsolete <termio.h>
This commit is contained in:
parent
cdcf5d2039
commit
432e9e5a2e
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user