From patchwork Sun Aug 9 12:06:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 31019 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4D5B1B7B6F for ; Sun, 9 Aug 2009 22:07:57 +1000 (EST) Received: from localhost ([127.0.0.1]:51063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ma7Bo-0005xK-B1 for incoming@patchwork.ozlabs.org; Sun, 09 Aug 2009 08:07:52 -0400 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 Received: (qmail invoked by alias); 09 Aug 2009 12:07:10 -0000 Received: from p54BD118D.dip0.t-ipconnect.de (HELO FSCPC) [84.189.17.141] by mail.gmx.net (mp058) with SMTP; 09 Aug 2009 14:07:10 +0200 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX1/XA85UJc/XJ0K1RnB6jKjITRJB3VecHQ+cOj7iJF JALuDEWaEVTmw0 Message-ID: From: "Sebastian Herbszt" To: "Filip Navara" , Date: Sun, 9 Aug 2009 14:06:09 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16669 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: [Qemu-devel] [PATCH] Work around stdio redirection by SDL on Windows X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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);