Skip to contentSkip to conversation

mini-os: Fix an compilation error in xencons_ring

PATCH New Yu Zhiguo 1 participant 1 message Dec 14, 2009

lore
Share & tools
lore

Yu Zhiguo

author
#0 lore raw

PATCH 1/1 mini-os: Fix an compilation error in xencons_ring

Fix an compilation error in xencons_ring if undefined HAVE_LIBC.

extras/mini-os/console/xencons_ring.c +1 -1
@@ -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)