From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlGXQ-0003vb-AQ for qemu-devel@nongnu.org; Mon, 25 Jul 2011 04:29:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlGXP-000767-Fo for qemu-devel@nongnu.org; Mon, 25 Jul 2011 04:29:20 -0400 From: TeLeMan Date: Mon, 25 Jul 2011 16:29:14 +0800 Message-Id: <1311582554-963-1-git-send-email-geleman@gmail.com> Subject: [Qemu-devel] [PATCH] monitor: fix build breakage with --disable-vnc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-trivial@nongnu.org, TeLeMan , qemu-devel The breakage was introduced by the commit 13661089810d3e59931f3e80d7cb541b99af7071 Signed-off-by: TeLeMan --- monitor.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 92cdd05..52ae5f2 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.3.1.msysgit.0