From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ma7BH-0005w2-VO for qemu-devel@nongnu.org; Sun, 09 Aug 2009 08:07:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ma7BC-0005qb-Gh for qemu-devel@nongnu.org; Sun, 09 Aug 2009 08:07:18 -0400 Received: from [199.232.76.173] (port=58688 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ma7BC-0005qW-B5 for qemu-devel@nongnu.org; Sun, 09 Aug 2009 08:07:14 -0400 Received: from mail.gmx.net ([213.165.64.20]:59991) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ma7BB-00028D-I4 for qemu-devel@nongnu.org; Sun, 09 Aug 2009 08:07:14 -0400 Message-ID: From: "Sebastian Herbszt" Date: Sun, 9 Aug 2009 14:06:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Work around stdio redirection by SDL on Windows List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Filip Navara , qemu-devel@nongnu.org Work around no longer working console output with SDL on Windows. Signed-off-by: Sebastian Herbszt --- v0.11.0-rc0-201-gd9c3231/vl.c.orig Sun Aug 9 11:52:47 2009 +++ v0.11.0-rc0-201-gd9c3231/vl.c Sun Aug 9 11:58:59 2009 @@ -4873,6 +4873,12 @@ CPUState *env; int show_vnc_port = 0; +/* Work around stdio redirection by SDL on Windows */ +#if defined (CONFIG_SDL) && defined (_WIN32) + freopen("CON", "wb", stdout); + freopen("CON", "wb", stderr); +#endif + qemu_cache_utils_init(envp); LIST_INIT (&vm_change_state_head);