]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commitdiff
Compile xenfb.c for DM.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Fri, 6 Jun 2008 17:02:31 +0000 (18:02 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 6 Jun 2008 17:02:31 +0000 (18:02 +0100)
hw/xenfb.c
xen-config-host.h
xen-hooks.mak

index ca1ab65c64cf7ee2cc82c7eda1daf87f9d2edfe8..2917d5c98b2481fb757b0c9efb18f1e4ec36d82e 100644 (file)
@@ -1,4 +1,7 @@
+#include <stdbool.h>
+
 #include "hw.h"
+#include "console.h"
 
 #include <stdarg.h>
 #include <stdlib.h>
@@ -20,6 +23,8 @@
 #include <xs.h>
 
 #include "xenfb.h"
+#include "qemu-common.h"
+#include "config.h"
 
 #ifdef CONFIG_STUBDOM
 #include <semaphore.h>
@@ -671,6 +676,7 @@ static int xenfb_on_state_change(struct xenfb_device *dev)
                break;
        case XenbusStateClosed:
                xenfb_switch_state(dev, state);
+       default:; /* hope this isn't important */
        }
        return 0;
 }
@@ -1325,6 +1331,7 @@ static int xenfb_register_console(struct xenfb *xenfb) {
                             xenfb_update,
                             xenfb_invalidate,
                             xenfb_screen_dump,
+                            NULL,
                             xenfb);
         if (xenfb->ds->dpy_resize_shared)
             dpy_resize_shared(xenfb->ds, xenfb->width, xenfb->height, xenfb->depth, xenfb->row_stride, xenfb->pixels + xenfb->offset);
index e6b02fefe4972023542d97edc24d2ae05e45f349..f51a6a59fcf07664b512df7387b6d6feb3ab1033 100644 (file)
@@ -3,11 +3,19 @@ extern int domid;
 
 #include <errno.h>
 
-#define bool xen_bool
+#ifdef bool
+# define XEN_CONFIG_HOST_BOOL_WAS_DEFINED 1
+#else
+# define bool xen_bool
+#endif
+
 #include "xenctrl.h"
 #include "xs.h"
 #include "blktaplib.h"
-#undef bool
+
+#ifndef XEN_CONFIG_HOST_BOOL_WAS_DEFINED
+# undef bool
+#endif
 
 #undef CONFIG_GDBSTUB
 
index 94c031e48f8a007f7f49c165215b66fd4696ad60..9a4a51fa69454557390ca7fce3f81adb0eb86c13 100644 (file)
@@ -24,7 +24,7 @@ OBJS += piix4acpi.o
 OBJS += xen_platform.o
 OBJS += xen_machine_fv.o
 OBJS += xen_machine_pv.o
-#OBJS += xenfb.o
+OBJS += xenfb.o
 OBJS += xen_console.o
 OBJS += xen_machine_fv.o
 OBJS += xen_blktap.o