aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-09-09 12:44:11 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-22 14:39:06 +0400
commit5324e3e958e87083c87e2965b6c87db24c6afa90 (patch)
tree61b7a17a07ed9f13a4b0fdde06942cc4de083c5b /softmmu
parent48fb0a826eea2e7b0135f49e7fa63e7efe2b7677 (diff)
downloadqemu-5324e3e958e87083c87e2965b6c87db24c6afa90.zip
qemu-5324e3e958e87083c87e2965b6c87db24c6afa90.tar.gz
qemu-5324e3e958e87083c87e2965b6c87db24c6afa90.tar.bz2
qemu-options: define -spice only #ifdef CONFIG_SPICE
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1982600 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'softmmu')
-rw-r--r--softmmu/vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 0b81f61..f7d7c95 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3537,6 +3537,7 @@ void qemu_init(int argc, char **argv, char **envp)
case QEMU_OPTION_readconfig:
qemu_read_config_file(optarg, qemu_parse_config_group, &error_fatal);
break;
+#ifdef CONFIG_SPICE
case QEMU_OPTION_spice:
olist = qemu_find_opts_err("spice", NULL);
if (!olist) {
@@ -3549,6 +3550,7 @@ void qemu_init(int argc, char **argv, char **envp)
}
display_remote++;
break;
+#endif
case QEMU_OPTION_writeconfig:
{
FILE *fp;