aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-15 20:18:41 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-15 20:18:41 +0000
commit880fec5d086cb528b6fdb5948ccacbc1dcce5cfd (patch)
treeaed50c47e7adcc2f16cf1e3b87220670c4d74db8
parent7e000c2e3d0ace8912e677c698ee7eb17919832a (diff)
Unbreak SDL on Mac OS X
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6620 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--vl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 5f237d0a06..b6530567a7 100644
--- a/vl.c
+++ b/vl.c
@@ -137,6 +137,13 @@
#ifdef CONFIG_SDL
#ifdef __APPLE__
#include <SDL/SDL.h>
+int qemu_main(int argc, char **argv, char **envp);
+int main(int argc, char **argv)
+{
+ qemu_main(argc, argv, NULL);
+}
+#undef main
+#define main qemu_main
#endif
#endif /* CONFIG_SDL */