diff options
author | John Snow <jsnow@redhat.com> | 2016-06-29 18:41:35 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-07-06 10:31:57 +0200 |
commit | 015e02f88071cfedd6bc6f910af5a388462aec6b (patch) | |
tree | 105bbef8ee85a62d800f59a00f8a4fce127ba49c /include/ui/qemu-spice.h | |
parent | 1331eab216c9dc4e50a48a34d14926b31a7fd611 (diff) |
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 <jsnow@redhat.com>
Message-id: 1467240095-12507-2-git-send-email-jsnow@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/qemu-spice.h')
-rw-r--r-- | include/ui/qemu-spice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h index 57ac91b921..edad5e7bbf 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 |