diff options
author | Claes Nästén <pekdon@gmail.com> | 2021-12-06 07:53:14 +0100 |
---|---|---|
committer | Claes Nästén <pekdon@gmail.com> | 2021-12-07 09:56:25 +0100 |
commit | 05f9f63f2478841f9fa6261c68663797fa9d43f6 (patch) | |
tree | 77f3af0ae8f0948a92c7f9a1cdb186cc82f6b4e0 /src/nvim/os/pty_process_unix.c | |
parent | 435dd04bdb7b385fe63bdd6985cda3380663e959 (diff) | |
download | rneovim-05f9f63f2478841f9fa6261c68663797fa9d43f6.tar.gz rneovim-05f9f63f2478841f9fa6261c68663797fa9d43f6.tar.bz2 rneovim-05f9f63f2478841f9fa6261c68663797fa9d43f6.zip |
fix: don't use cfsetspeed, use i and o variants
cfsetspeed is not available on SunOS, use cfsetispeed and cfsetospeed
instead.
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r-- | src/nvim/os/pty_process_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c index abbb410293..450bc75ffb 100644 --- a/src/nvim/os/pty_process_unix.c +++ b/src/nvim/os/pty_process_unix.c @@ -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; |