]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
error message if user specifies SDL cmd line option when SDL is disabled
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 1cb7ce2801a98f7767cf12a644a616b1b720b14f..4ca41928e7dcc31b59b584e75c74e528759410c3 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2625,6 +2625,14 @@ int main(int argc, char **argv, char **envp)
             case QEMU_OPTION_sdl:
                 display_type = DT_SDL;
                 break;
+#else
+            case QEMU_OPTION_no_frame:
+            case QEMU_OPTION_alt_grab:
+            case QEMU_OPTION_ctrl_grab:
+            case QEMU_OPTION_no_quit:
+            case QEMU_OPTION_sdl:
+                fprintf(stderr, "SDL support is disabled\n");
+                exit(1);
 #endif
             case QEMU_OPTION_pidfile:
                 pid_file = optarg;