From 015e02f88071cfedd6bc6f910af5a388462aec6b Mon Sep 17 00:00:00 2001 From: John Snow Date: Wed, 29 Jun 2016 18:41:35 -0400 Subject: spice: avoid .set_mm_time on >= 0.12.6 Spice deprecated this callback in 0.12.6. It's not a problem yet, but it will cause Clang to fail in a -Werror build due to the deprecated tag. Signed-off-by: John Snow Message-id: 1467240095-12507-2-git-send-email-jsnow@redhat.com Signed-off-by: Gerd Hoffmann --- include/ui/qemu-spice.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h index 57ac91b..edad5e7 100644 --- a/include/ui/qemu-spice.h +++ b/include/ui/qemu-spice.h @@ -42,6 +42,9 @@ int qemu_spice_set_pw_expire(time_t expires); int qemu_spice_migrate_info(const char *hostname, int port, int tls_port, const char *subject); +#define SPICE_NEEDS_SET_MM_TIME \ + (!defined(SPICE_SERVER_VERSION) || (SPICE_SERVER_VERSION < 0xc06)) + #if SPICE_SERVER_VERSION >= 0x000c02 void qemu_spice_register_ports(void); #else -- cgit v1.1