Skip to content

Commit

Permalink
fix: don't use cfsetspeed, use i and o variants
Browse files Browse the repository at this point in the history
cfsetspeed is not available on SunOS, use cfsetispeed and cfsetospeed
instead.
  • Loading branch information
pekdon committed Dec 7, 2021
1 parent 435dd04 commit 05f9f63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nvim/os/pty_process_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 05f9f63

Please sign in to comment.