aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-06-13 13:19:11 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-13 19:17:11 -0500
commit6693665ace00864640c1c9f5020ea125e0b997c2 (patch)
treede174234270e238eceea0ce8720e2255022baba3
parent1172f6536247c8f5a382e6f9062034b1e9bec631 (diff)
Fix SDL include path.
SDL header files can be included in two different ways: * like this: #include <SDL/SDL.h> * like this: #include <SDL.h> The 1st alternative is simple and works in many cases. The 2nd alternative needs sdl-config to get the correct compiler flags. It is the recommended way to write SDL includes and standard for QEMU. The patch fixes two non-standard SDL includes. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/baum.c2
-rw-r--r--vl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/baum.c b/hw/baum.c
index c9135b524f..b47ea34c4d 100644
--- a/hw/baum.c
+++ b/hw/baum.c
@@ -30,7 +30,7 @@
#include <brlapi_constants.h>
#include <brlapi_keycodes.h>
#ifdef CONFIG_SDL
-#include <SDL/SDL_syswm.h>
+#include <SDL_syswm.h>
#endif
#if 0
diff --git a/vl.c b/vl.c
index bdd78cf8ea..40fc3a432c 100644
--- a/vl.c
+++ b/vl.c
@@ -114,7 +114,7 @@
#ifdef CONFIG_SDL
#ifdef __APPLE__
-#include <SDL/SDL.h>
+#include <SDL.h>
int qemu_main(int argc, char **argv, char **envp);
int main(int argc, char **argv)
{