--- freem/src/init.c 2025/05/16 04:02:14 1.15 +++ freem/src/init.c 2026/01/07 19:51:33 1.16 @@ -1,5 +1,5 @@ /* - * $Id: init.c,v 1.15 2025/05/16 04:02:14 snw Exp $ + * $Id: init.c,v 1.16 2026/01/07 19:51:33 snw Exp $ * FreeM initialization * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: init.c,v $ + * Revision 1.16 2026/01/07 19:51:33 snw + * Fix segfault in reverse $QUERY + * * Revision 1.15 2025/05/16 04:02:14 snw * Make FreeM build on macOS on Apple Silicon * @@ -80,14 +83,18 @@ # endif # define termio termios # else -# if !defined(MSDOS) +# if !defined(MSDOS) && !defined(__linux__) # include +# else +# include +# define termio termios # endif # endif #else # include #endif + #if defined(__APPLE__) # define termio termios # define TCGETA TIOCGETA