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-devel

[Xen-devel] [PATCH] mini-os: Fix an compilation error in xencons_ring

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] mini-os: Fix an compilation error in xencons_ring
From: Yu Zhiguo <yuzg@xxxxxxxxxxxxxx>
Date: Mon, 14 Dec 2009 17:56:22 +0800
Cc:
Delivery-date: Mon, 14 Dec 2009 01:56:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 3.0a1 (Windows/2008050715)
Fix an compilation error in xencons_ring if undefined HAVE_LIBC.

Signed-off-by: Yu Zhiguo <yuzg@xxxxxxxxxxxxxx>


diff --git a/extras/mini-os/console/xencons_ring.c 
b/extras/mini-os/console/xencons_ring.c
--- a/extras/mini-os/console/xencons_ring.c
+++ b/extras/mini-os/console/xencons_ring.c
@@ -67,8 +67,8 @@
 
 static void handle_input(evtchn_port_t port, struct pt_regs *regs, void *data)
 {
+       struct consfront_dev *dev = (struct consfront_dev *) data;
 #ifdef HAVE_LIBC
-       struct consfront_dev *dev = (struct consfront_dev *) data;
         int fd = dev ? dev->fd : -1;
 
         if (fd != -1)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] mini-os: Fix an compilation error in xencons_ring, Yu Zhiguo <=