From 147ec30fd6ab75b20ff4496dbcbf7f5469e86e99 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 9 Jul 2023 16:52:03 -0700 Subject: [PATCH] fix compilation with FreeBSD FreeBSD is checked for in two places and two duplicate functions are used. Just use the former. Signed-off-by: Rosen Penev --- src/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.c b/src/terminal.c index 1f7e58538..0898ad47b 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -490,7 +490,7 @@ int tty_fix () } #endif -#if defined (__APPLE__) || defined (__FreeBSD__) +#if defined (__APPLE__) static struct termios savemodes; static int havemodes = 0;