Skip to contentSkip to conversation

monitor: fix build breakage with --disable-vnc

PATCH Applied TeLeMan 3 participants 3 messages Jul 25, 2011 – Aug 2, 2011

lore
Share & tools
lore

TeLeMan

author
#0 lore raw

PATCH 1/1 monitor: fix build breakage with --disable-vnc

The breakage was introduced by the commit 13661089810d3e59931f3e80d7cb541b99af7071

---
 monitor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
monitor.c +2 -0
index 92cdd05..52ae5f2 100644
@@ -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) {
Signature · 1 line
1.7.3.1.msysgit.0
#1 lore raw
Quoted 3 lines · TeLeMan

The breakage was introduced by the commit 13661089810d3e59931f3e80d7cb541b99af7071

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 21 lines
---
  monitor.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
monitor.c +2 -0
index 92cdd05..52ae5f2 100644
@@ -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) {
#2 lore raw
Quoted 7 lines · Anthony Liguori
Quoted 3 lines · TeLeMan

The breakage was introduced by the commit 13661089810d3e59931f3e80d7cb541b99af7071

Applied. Thanks.

I think this patch should be applied in stable-0.15.

Regards,

Signature · 1 line
Fabien Chouteau