[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [STABLE 3/4] monitor: fix build breakage with --disable-vnc
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [STABLE 3/4] monitor: fix build breakage with --disable-vnc |
Date: |
Fri, 16 Sep 2011 13:30:18 -0300 |
From: TeLeMan <address@hidden>
The breakage was introduced by the commit
13661089810d3e59931f3e80d7cb541b99af7071
Signed-off-by: TeLeMan <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
(cherry picked from commit c62f6d1d76aea587556c85b6b7b5c44167006264)
---
monitor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/monitor.c b/monitor.c
index 718935b..1b8ba2c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1200,10 +1200,12 @@ static int add_graphics_client(Monitor *mon, const
QDict *qdict, QObject **ret_d
}
qerror_report(QERR_ADD_CLIENT_FAILED);
return -1;
+#ifdef CONFIG_VNC
} else if (strcmp(protocol, "vnc") == 0) {
int fd = monitor_get_fd(mon, fdname);
vnc_display_add_client(NULL, fd, skipauth);
return 0;
+#endif
} else if ((s = qemu_chr_find(protocol)) != NULL) {
int fd = monitor_get_fd(mon, fdname);
if (qemu_chr_add_client(s, fd) < 0) {
--
1.7.7.rc0.72.g4b5ea