]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
mini-os: Fix a compilation error in xencons_ring when !HAVE_LIBC
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 11:38:15 +0000 (11:38 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 11:38:15 +0000 (11:38 +0000)
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
console/xencons_ring.c

index 6d2814e4928cc1d304f1d39b847a0cd7eea994c2..bfe5cb663cf9f53dc39e2d900cfe42b8d802fdef 100644 (file)
@@ -67,8 +67,8 @@ int xencons_ring_send(struct consfront_dev *dev, const char *data, unsigned len)
 
 static void handle_input(evtchn_port_t port, struct pt_regs *regs, void *data)
 {
-#ifdef HAVE_LIBC
        struct consfront_dev *dev = (struct consfront_dev *) data;
+#ifdef HAVE_LIBC
         int fd = dev ? dev->fd : -1;
 
         if (fd != -1)