[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] ioemu: Include termios.h and sys/ioctl.h to get TIOCM_* definitions.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # 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 <keir.fraser@xxxxxxxxxx> --- tools/ioemu/hw/serial.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) 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,15 +26,10 @@ #include <sys/time.h> #include <time.h> #include <assert.h> +#include <termios.h> +#include <sys/ioctl.h> //#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 */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |