From patchwork Thu Dec 17 03:45:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Eliminates a warning about missing function prototype for qemu_main. Date: Wed, 16 Dec 2009 17:45:19 -0000 From: G 3 X-Patchwork-Id: 41301 Message-Id: To: qemu-devel@nongnu.org This patch allows for the file vl.c to compile without any warnings. Signed-off-by: John Arbuckle --- vl.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index c0d98f5..b466fe0 100644 --- a/vl.c +++ b/vl.c @@ -107,16 +107,19 @@ extern int madvise(caddr_t, size_t, int); #ifdef CONFIG_SDL #if defined(__APPLE__) || defined(main) #include -int qemu_main(int argc, char **argv, char **envp); + int main(int argc, char **argv) { return qemu_main(argc, argv, NULL); } + #undef main #define main qemu_main #endif #endif /* CONFIG_SDL */ +int qemu_main(int argc, char **argv, char **envp); + #ifdef CONFIG_COCOA #undef main #define main qemu_main