Skip to contentSkip to conversation

SDL/SDL.h breaks vl.c on MinGW

Qemu-devel Tomasz B�tor 2 participants 2 messages Jul 8, 2004 – Jul 9, 2004

lore
Share & tools
lore
#0 lore raw

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
diff -Nur vl-orig.c vl.c
@@ -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
#1 lore raw

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
diff -u -r1.88 vl.c
@@ -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 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:

diff -Nur vl-orig.c vl.c

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 · 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