[PATCH] qemu-kvm: Fix build without VNC support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Qemu-kvm 0.15.0 doesn't build with vnc support disabled. The following
patch fixes the problem:

Signed-off-by: Boris Dolgov <boris@xxxxxxxxxxx>

----- monitor.c~  2011-08-09 12:40:29.000000000 +0000
+++ monitor.c   2011-09-13 13:02:40.000000000 +0000
@@ -1221,10 +1221,12 @@ static int add_graphics_client(Monitor *
         }
        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) {

-- 
Boris Dolgov.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux