[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.