ia64/xen-unstable

changeset 16554:ec61ca6cd55b

Fix ioemu compile: serial.c was including a Linux-specific header.
Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Dec 07 00:41:54 2007 +0000 (2007-12-07)
parents b240698146a2
children c1012765c760
files tools/ioemu/hw/serial.c
line diff
     1.1 --- a/tools/ioemu/hw/serial.c	Thu Dec 06 17:47:53 2007 +0000
     1.2 +++ b/tools/ioemu/hw/serial.c	Fri Dec 07 00:41:54 2007 +0000
     1.3 @@ -26,10 +26,16 @@
     1.4  #include <sys/time.h>
     1.5  #include <time.h>
     1.6  #include <assert.h>
     1.7 -#include <asm/termios.h>
     1.8  
     1.9  //#define DEBUG_SERIAL
    1.10  
    1.11 +#define TIOCM_DTR	0x002
    1.12 +#define TIOCM_RTS	0x004
    1.13 +#define TIOCM_CTS	0x020
    1.14 +#define TIOCM_CAR	0x040
    1.15 +#define TIOCM_RI	0x080
    1.16 +#define TIOCM_DSR	0x100
    1.17 +
    1.18  #define UART_LCR_DLAB	0x80	/* Divisor latch access bit */
    1.19  
    1.20  #define UART_IER_MSI	0x08	/* Enable Modem status interrupt */