Skip to content
  • Michael Tokarev's avatar
    vl: always define no_frame · a1077090
    Michael Tokarev authored
    Commit 047d4e15
    
     "Unbreak -no-quit for GTK, validate SDL options" broke
    build of qemu without sdl, by referencing `no_frame' variable which is defined
    inside #if SDL block.  Fix that by defining that variable unconditionally.
    
    This is a better fix for the build issue introduced by that patch than
    a revert.  This change keeps the new functinality introduced by that patch
    and just fixes the compilation.  It still is not a complete fix around the
    original issue (not working -no-frame et al with -display gtk), because it
    makes only the legacy interface working, not the new suboption interface,
    so a few more changes are needed.
    
    Cc: Peter Wu <lekensteyn@gmail.com>
    Cc: qemu-trivial@nongnu.org
    Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
    Reviewed-by: default avatarPeter Wu <lekensteyn@gmail.com>
    Tested-by: default avatarAndreas Färber <afaerber@suse.de>
    Message-id: 1371292923-28105-1-git-send-email-mjt@msgid.tls.msk.ru
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    a1077090