WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] ioemu: Include termios.h and sys/ioctl.h

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] ioemu: Include termios.h and sys/ioctl.h to get TIOCM_* definitions.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Dec 2007 16:30:07 -0800
Delivery-date: Fri, 07 Dec 2007 16:30:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] ioemu: Include termios.h and sys/ioctl.h to get TIOCM_* definitions., Xen patchbot-unstable <=