* [Qemu-devel] SDL/SDL.h breaks vl.c on MinGW
@ 2004-07-08 17:43 Tomasz B±tor
2004-07-09 19:13 ` Pierre d'Herbemont
0 siblings, 1 reply; 2+ messages in thread
From: Tomasz B±tor @ 2004-07-08 17:43 UTC (permalink / raw)
To: qemu-devel
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-orig.c Mon Jul 5 21:25:12 2004
+++ vl.c Thu Jul 8 17:22:27 2004
@@ -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.
--
Tomasz Bątor e-mail: tomba@bartek.tu.kielce.pl ICQ: 101194886
------ ---- -- - - - - - - - - - - - -- ---- ------
"Push first the red button and then the blue button. No, wait..."
-- last words in a RPG game
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] SDL/SDL.h breaks vl.c on MinGW
2004-07-08 17:43 [Qemu-devel] SDL/SDL.h breaks vl.c on MinGW Tomasz B±tor
@ 2004-07-09 19:13 ` Pierre d'Herbemont
0 siblings, 0 replies; 2+ messages in thread
From: Pierre d'Herbemont @ 2004-07-09 19:13 UTC (permalink / raw)
To: qemu-devel
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
diff -u -r1.88 vl.c
--- vl.c 8 Jul 2004 21:17:50 -0000 1.88
+++ vl.c 9 Jul 2004 19:12:42 -0000
@@ -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. */
Le 8 juil. 04, à 19:43, Tomasz B±tor a écrit :
>
> 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-orig.c Mon Jul 5 21:25:12 2004
> +++ vl.c Thu Jul 8 17:22:27 2004
> @@ -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.
>
> --
> Tomasz Bątor e-mail: tomba@bartek.tu.kielce.pl ICQ: 101194886
> ------ ---- -- - - - - - - - - - - - -- ---- ------
> "Push first the red button and then the blue button. No, wait..."
> -- last words in a RPG game
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-09 19:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-08 17:43 [Qemu-devel] SDL/SDL.h breaks vl.c on MinGW Tomasz B±tor
2004-07-09 19:13 ` Pierre d'Herbemont
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).