debuggers.hg
changeset 16596:c0f7ba3aa9b2
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 <keir.fraser@citrix.com>
This is preferable to hard-coding them in the ioemu source file, or
including a Linux-specific header.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Fri Dec 07 12:48:36 2007 +0000 (2007-12-07) |
parents | 8e6c01aef56d |
children | 98e9485d8fcf |
files | tools/ioemu/hw/serial.c |
line diff
1.1 --- a/tools/ioemu/hw/serial.c Fri Dec 07 12:44:27 2007 +0000 1.2 +++ b/tools/ioemu/hw/serial.c Fri Dec 07 12:48:36 2007 +0000 1.3 @@ -26,16 +26,11 @@ 1.4 #include <sys/time.h> 1.5 #include <time.h> 1.6 #include <assert.h> 1.7 +#include <termios.h> 1.8 +#include <sys/ioctl.h> 1.9 1.10 //#define DEBUG_SERIAL 1.11 1.12 -#define TIOCM_DTR 0x002 1.13 -#define TIOCM_RTS 0x004 1.14 -#define TIOCM_CTS 0x020 1.15 -#define TIOCM_CAR 0x040 1.16 -#define TIOCM_RI 0x080 1.17 -#define TIOCM_DSR 0x100 1.18 - 1.19 #define UART_LCR_DLAB 0x80 /* Divisor latch access bit */ 1.20 1.21 #define UART_IER_MSI 0x08 /* Enable Modem status interrupt */