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 <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-07-09 16:52:03 -07:00
parent 1636bc41df
commit 147ec30fd6
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ int tty_fix ()
}
#endif
#if defined (__APPLE__) || defined (__FreeBSD__)
#if defined (__APPLE__)
static struct termios savemodes;
static int havemodes = 0;