aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-07 12:48:36 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-07 12:48:36 +0000
commita3024bb60156eb668d3c8326a9fcb8ba5ce97ba4 (patch)
treed3db041eb1ede278d22108f70a230534f776544f
parentdb9563e7e470f61d588ec57e04aaec64b67261a6 (diff)
downloadxen-a3024bb60156eb668d3c8326a9fcb8ba5ce97ba4.tar.gz
xen-a3024bb60156eb668d3c8326a9fcb8ba5ce97ba4.tar.bz2
xen-a3024bb60156eb668d3c8326a9fcb8ba5ce97ba4.zip
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>
-rw-r--r--tools/ioemu/hw/serial.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/ioemu/hw/serial.c b/tools/ioemu/hw/serial.c
index f66f0a1b3b..952f5b955c 100644
--- a/tools/ioemu/hw/serial.c
+++ b/tools/ioemu/hw/serial.c
@@ -26,16 +26,11 @@
#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 */
#define UART_IER_MSI 0x08 /* Enable Modem status interrupt */