summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-22 16:18:33 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-22 16:18:33 +0000
commitd268de04f29f8f6ad4523958e55fc5b55395eabc (patch)
treef2bcb9ec44219011a764ee2be768bdb8f3a9e26e /vl.c
parent9a717b55df29b2b0dd0553ccfa656671bad043d1 (diff)
Fix build with --disable-sdl
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6393 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 045b09f0b..73de9c385 100644
--- a/vl.c
+++ b/vl.c
@@ -5589,10 +5589,11 @@ int main(int argc, char **argv, char **envp)
if (vnc_display_open(ds, vnc_display) < 0)
exit(1);
}
- if (sdl || !vnc_display)
#if defined(CONFIG_SDL)
+ if (sdl || !vnc_display)
sdl_display_init(ds, full_screen, no_frame);
#elif defined(CONFIG_COCOA)
+ if (sdl || !vnc_display)
cocoa_display_init(ds, full_screen);
#endif
}