mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix: don't use cfsetspeed, use i and o variants
cfsetspeed is not available on SunOS, use cfsetispeed and cfsetospeed instead.
This commit is contained in:
parent
435dd04bdb
commit
05f9f63f24
@ -198,7 +198,9 @@ static void init_termios(struct termios *termios) FUNC_ATTR_NONNULL_ALL
|
||||
termios->c_cflag = CS8|CREAD;
|
||||
termios->c_lflag = ISIG|ICANON|IEXTEN|ECHO|ECHOE|ECHOK;
|
||||
|
||||
cfsetspeed(termios, 38400);
|
||||
// not using cfsetspeed, not available on all platforms
|
||||
cfsetispeed(termios, 38400);
|
||||
cfsetospeed(termios, 38400);
|
||||
|
||||
#ifdef IUTF8
|
||||
termios->c_iflag |= IUTF8;
|
||||
|
Loading…
Reference in New Issue
Block a user