version 1.3, 2025/02/25 18:53:14
|
version 1.5, 2025/03/09 15:20:18
|
Line 15
|
Line 15
|
* FreeM initialization |
* FreeM initialization |
* |
* |
* |
* |
* Author: Serena Willis <jpw@coherent-logic.com> |
* Author: Serena Willis <snw@coherent-logic.com> |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 2020 Coherent Logic Development LLC |
* Copyright (C) 2020 Coherent Logic Development LLC |
* |
* |
Line 49
|
Line 49
|
#include <errno.h> |
#include <errno.h> |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
|
|
#if defined(__sun) || defined(__FreeBSD__) || defined(__NetBSD__) |
#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN) |
# include <termio.h> |
# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA) |
|
# include <termios.h> |
|
# if !defined(__AMIGA) |
|
# define TCGETA TIOCGETA |
|
# define TCSETA TIOCSETA |
|
# endif |
|
# define termio termios |
|
# else |
|
# if !defined(MSDOS) |
|
# include <termio.h> |
|
# endif |
|
# endif |
#else |
#else |
# include <termios.h> |
# include <termios.h> |
#endif |
#endif |