diff mbox

fixup! libqemustub: add more stubs for qemu-char

Message ID 20140619165125.15863.13008.stgit@3820
State New
Headers show

Commit Message

Nikolay Nikolaev June 19, 2014, 4:51 p.m. UTC
Fix build break when --disable-spice.

Reported-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
---
 stubs/qemu-chr-open-spice.c |    4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/stubs/qemu-chr-open-spice.c b/stubs/qemu-chr-open-spice.c
index 40a29a9..83d8a66 100644
--- a/stubs/qemu-chr-open-spice.c
+++ b/stubs/qemu-chr-open-spice.c
@@ -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