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
commit1187050cbeeb6ad158cde7ca5d9eac7da482204e (patch)
treef2bcb9ec44219011a764ee2be768bdb8f3a9e26e /vl.c
parent26d0b93af7b9699ffe7955017c24f66e91a90619 (diff)
downloadqemu-1187050cbeeb6ad158cde7ca5d9eac7da482204e.tar.gz
qemu-1187050cbeeb6ad158cde7ca5d9eac7da482204e.tar.bz2
qemu-1187050cbeeb6ad158cde7ca5d9eac7da482204e.zip
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 045b09f0b1..73de9c3854 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
}