Skip to contentSkip to conversation

Fix compile error when none of the defines gets hit

PATCH New Liu Yu 1 participant 1 message Jan 22, 2009

lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 1/1 Fix compile error when none of the defines gets hit

ppcemb KVM mode hasn't support graphic yet, so doesn't need sdl.

Thanks to Ina's <[email protected]> suggestion.

---
 vl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
vl.c +2 -1
index 045b09f..4c512a9 100644
@@ -5589,12 +5589,13 @@ int main(int argc, char **argv, char **envp)
                     if (vnc_display_open(ds, vnc_display) < 0)
                         exit(1);
                 }
-                if (sdl || !vnc_display)
+                if (sdl || !vnc_display) {
 #if defined(CONFIG_SDL)
                     sdl_display_init(ds, full_screen, no_frame);
 #elif defined(CONFIG_COCOA)
                     cocoa_display_init(ds, full_screen);
 #endif
+                }
             }
     }
     dpy_resize(ds);
Signature · 1 line
1.5.4