SDL/SDL.h breaks vl.c on MinGW
Hi.
I don't know why it happens, but including SDL/SDL.h in vl.c (CVS snapshot qemu-snapshot-2004-07-07_23.tar.bz2) breaks QEMU on MinGW (it exits immediatelly with no output). Following little patch fixes it:
vl.c Thu Jul 8 17:22:27 2004 renamed from vl-orig.c Mon Jul 5 21:25:12 2004 +0 -1
@@ -65,7 +65,6 @@ #endif #ifdef CONFIG_SDL -#include <SDL/SDL.h> #if defined(__linux__) /* SDL use the pthreads and they modify sigaction. We don't want that. */
t.
Signature · 4 lines
Tomasz Bątor e-mail: [email protected] ICQ: 101194886 ------ ---- -- - - - - - - - - - - - -- ---- ------ "Push first the red button and then the blue button. No, wait..." -- last words in a RPG game
You have to include it on Darwin/Mac OS X. So it is not the proper fix.
Pierre
Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.88
vl.c 9 Jul 2004 19:12:42 -0000 renamed from vl.c 8 Jul 2004 21:17:50 -0000 1.88 +3 -1
@@ -65,7 +65,9 @@ #endif #ifdef CONFIG_SDL -#include <SDL/SDL.h> +#ifdef __APPLE__ +# include <SDL/SDL.h> +#endif #if defined(__linux__) /* SDL use the pthreads and they modify sigaction. We don't want that. */
Quoted 35 lines · Tomasz B±tor
Hi.
I don't know why it happens, but includingSDL/SDL.hinvl.c(CVS snapshot qemu-snapshot-2004-07-07_23.tar.bz2) breaks QEMU on MinGW (it exits immediatelly with no output). Following little patch fixes it:diff -Nur
vl-orig.cvl.cvl.c Thu Jul 8 17:22:27 2004 renamed from vl-orig.c Mon Jul 5 21:25:12 2004 +0
-1@@ -65,7 +65,6 @@ #endif #ifdef CONFIG_SDL -#include <SDL/SDL.h> #if defined(__linux__) /* SDL use the pthreads and they modify sigaction. We don't want that. */t.
Signature · 10 lines
Tomasz Bątor e-mail: [email protected] ICQ: 101194886 ------ ---- -- - - - - - - - - - - - -- ---- ------ "Push first the red button and then the blue button. No, wait..." -- last words in a RPG game _______________________________________________ Qemu-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/qemu-devel