--- freem/src/init.c 2025/01/19 02:04:04 1.1.1.1 +++ freem/src/init.c 2025/03/09 15:20:18 1.5 @@ -15,7 +15,7 @@ * FreeM initialization * * - * Author: Serena Willis + * Author: Serena Willis * Copyright (C) 1998 MUG Deutschland * Copyright (C) 2020 Coherent Logic Development LLC * @@ -48,7 +48,23 @@ #include #include #include -#include + +#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN) +# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA) +# include +# if !defined(__AMIGA) +# define TCGETA TIOCGETA +# define TCSETA TIOCSETA +# endif +# define termio termios +# else +# if !defined(MSDOS) +# include +# endif +# endif +#else +# include +#endif #include "config.h"