Received: from eggs.gnu.org ([2001:4830:134:3::10]:52342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoU6v-000723-Eu for qemu-devel@nongnu.org; Mon, 17 Jun 2013 03:44:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoU6u-0005Ri-Ig for qemu-devel@nongnu.org; Mon, 17 Jun 2013 03:44:21 -0400 From: Michael Tokarev Date: Mon, 17 Jun 2013 11:44:09 +0400 Message-Id: <1371455050-9523-2-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1371455050-9523-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1371455050-9523-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PULL trivial/urgent 1/2] vl: always define no_frame List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-trivial@nongnu.org, Peter Wu , Michael Tokarev , qemu-devel@nongnu.org Commit 047d4e151dd46 "Unbreak -no-quit for GTK, validate SDL options" broke build of qemu without sdl, by referencing `no_frame' variable which is defined inside #if SDL block. Fix that by defining that variable unconditionally. This is a better fix for the build issue introduced by that patch than a revert. This change keeps the new functinality introduced by that patch and just fixes the compilation. It still is not a complete fix around the original issue (not working -no-frame et al with -display gtk), because it makes only the legacy interface working, not the new suboption interface, so a few more changes are needed. Cc: Peter Wu Cc: qemu-trivial@nongnu.org Signed-off-by: Michael Tokarev Reviewed-by: Peter Wu --- vl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vl.c b/vl.c index 9f8fd6e..f94ec9c 100644 --- a/vl.c +++ b/vl.c @@ -199,9 +199,7 @@ static int rtc_date_offset = -1; /* -1 means no change */ QEMUClock *rtc_clock; int vga_interface_type = VGA_NONE; static int full_screen = 0; -#ifdef CONFIG_SDL static int no_frame = 0; -#endif int no_quit = 0; CharDriverState *serial_hds[MAX_SERIAL_PORTS]; CharDriverState *parallel_hds[MAX_PARALLEL_PORTS]; -- 1.7.10.4