]> git.proxmox.com Git - qemu.git/commitdiff
monitor: fix build breakage with --disable-vnc
authorTeLeMan <geleman@gmail.com>
Mon, 25 Jul 2011 08:29:14 +0000 (16:29 +0800)
committerJustin M. Forbes <jforbes@redhat.com>
Wed, 31 Aug 2011 20:09:25 +0000 (15:09 -0500)
The breakage was introduced by the commit 13661089810d3e59931f3e80d7cb541b99af7071

Signed-off-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c

index 718935b881349be6e398e3e9fc1c1df177851618..1b8ba2c1fa284175262d6017d3fec083624bdf18 100644 (file)
--- 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) {