qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix OS X SDL breakage
@ 2005-01-23 22:31 Daniel Egger
  2005-01-26 19:47 ` Fabrice Bellard
  0 siblings, 1 reply; 16+ messages in thread
From: Daniel Egger @ 2005-01-23 22:31 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 553 bytes --]

Hija,

On OS X vl.c explicitly includes <SDL/SDL.h> which is wrong for two
reasons:
a) the file does compile without the include
b) the path is supposedly incorrect since the include path
    is (should) be set by `sdl-config --cflags` which already
    includes the path "SDL". So this will only work in case
    someone tries to be clever by copying the SDL headers into
    a directory SDL in a standard include directory and breaks
    e.g. on fink where this is not the case.

Attached patch fixes this by removing the seemingly unneeded
include.


[-- Attachment #1.2: diff --]
[-- Type: application/octet-stream, Size: 453 bytes --]

Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.117
diff -u -r1.117 vl.c
--- vl.c	15 Jan 2005 21:50:11 -0000	1.117
+++ vl.c	23 Jan 2005 22:26:05 -0000
@@ -66,12 +66,6 @@
 #define memalign(align, size) malloc(size)
 #endif
 
-#ifdef CONFIG_SDL
-#ifdef __APPLE__
-#include <SDL/SDL.h>
-#endif
-#endif /* CONFIG_SDL */
-
 #include "disas.h"
 
 #include "exec-all.h"

[-- Attachment #1.3: Type: text/plain, Size: 23 bytes --]



Servus,
       Daniel

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 478 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-01-27 23:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23 22:31 [Qemu-devel] [PATCH] Fix OS X SDL breakage Daniel Egger
2005-01-26 19:47 ` Fabrice Bellard
2005-01-26 20:47   ` Daniel Egger
2005-01-26 20:58   ` Laurent Amon
2005-01-27  7:53     ` Daniel Egger
2005-01-27 10:51       ` Laurent Amon
2005-01-27 11:40         ` Johannes Schindelin
2005-01-27 12:08           ` René Korthaus
2005-01-27 17:07             ` Daniel Egger
2005-01-27 22:39             ` Daniel Egger
2005-01-27 23:01             ` Laurent Amon
2005-01-27 13:27         ` [Qemu-devel] " Anand Kumria
2005-01-27 17:10           ` Daniel Egger
2005-01-27 19:34             ` Laurent Amon
2005-01-27 21:39               ` Daniel Egger
2005-01-27 21:33         ` [Qemu-devel] " Daniel Egger

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).