[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Work around stdio redirection by SDL on Windows
From: |
Sebastian Herbszt |
Subject: |
[Qemu-devel] [PATCH] Work around stdio redirection by SDL on Windows |
Date: |
Sun, 9 Aug 2009 14:06:09 +0200 |
Work around no longer working console output with SDL on Windows.
Signed-off-by: Sebastian Herbszt <address@hidden>
--- 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);
- [Qemu-devel] [PATCH] Work around stdio redirection by SDL on Windows,
Sebastian Herbszt <=