From 1383c5f6cb053ff278bd86e5acc3224b16af5d87 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Wed, 22 Apr 2015 16:39:58 +0100 Subject: [PATCH] TAB0 might not be defined in termios.h #2483 - OpenBSD termios.h does not have TAB0, skip its use if it is not defined --- src/nvim/os/pty_process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nvim/os/pty_process.c b/src/nvim/os/pty_process.c index c64f3f9932..ff0bcfb6de 100644 --- a/src/nvim/os/pty_process.c +++ b/src/nvim/os/pty_process.c @@ -205,7 +205,10 @@ static void init_termios(struct termios *termios) FUNC_ATTR_NONNULL_ALL memset(termios, 0, sizeof(struct termios)); // Taken from pangoterm termios->c_iflag = ICRNL|IXON; - termios->c_oflag = OPOST|ONLCR|TAB0; + termios->c_oflag = OPOST|ONLCR; +#ifdef TAB0 + termios->c_oflag |= TAB0; +#endif termios->c_cflag = CS8|CREAD; termios->c_lflag = ISIG|ICANON|IEXTEN|ECHO|ECHOE|ECHOK;