# HG changeset patch # User Keir Fraser # Date 1197031716 0 # Node ID c0f7ba3aa9b2109ca2c5e267152b47924c1bfa45 # Parent 8e6c01aef56df2f6d25619221c3b686f8fc52dfb ioemu: Include termios.h and sys/ioctl.h to get TIOCM_* definitions. This is preferable to hard-coding them in the ioemu source file, or including a Linux-specific header. Signed-off-by: Keir Fraser diff -r 8e6c01aef56d -r c0f7ba3aa9b2 tools/ioemu/hw/serial.c --- a/tools/ioemu/hw/serial.c Fri Dec 07 12:44:27 2007 +0000 +++ b/tools/ioemu/hw/serial.c Fri Dec 07 12:48:36 2007 +0000 @@ -26,16 +26,11 @@ #include #include #include +#include +#include //#define DEBUG_SERIAL -#define TIOCM_DTR 0x002 -#define TIOCM_RTS 0x004 -#define TIOCM_CTS 0x020 -#define TIOCM_CAR 0x040 -#define TIOCM_RI 0x080 -#define TIOCM_DSR 0x100 - #define UART_LCR_DLAB 0x80 /* Divisor latch access bit */ #define UART_IER_MSI 0x08 /* Enable Modem status interrupt */