Skip to contentSkip to conversation

fixup! libqemustub: add more stubs for qemu-char

PATCH New Nikolay Nikolaev 1 participant 1 message Jun 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! libqemustub: add more stubs for qemu-char

Fix build break when --disable-spice.

---
 stubs/qemu-chr-open-spice.c |    4 ++++
 1 file changed, 4 insertions(+)
stubs/qemu-chr-open-spice.c +4 -0
index 40a29a9..83d8a66 100644
@@ -1,12 +1,16 @@
 #include "qemu-common.h"
 #include "ui/qemu-spice.h"
 
+#ifdef CONFIG_SPICE
 CharDriverState *qemu_chr_open_spice_vmc(const char *type)
 {
     return NULL;
 }
 
+#if SPICE_SERVER_VERSION >= 0x000c02
 CharDriverState *qemu_chr_open_spice_port(const char *name)
 {
     return NULL;
 }
+#endif
+#endif