diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2011-03-16 13:33:35 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-03-22 08:39:12 -0500 |
commit | 47b053690e8582ab52e09181c2c3f19a2ade134f (patch) | |
tree | d5be0b34dc4b6bfb2220de7eaaed51787faf8132 /vl.c | |
parent | 58fc096c76e4093d652d75c01112300a2d5f609e (diff) |
error message if user specifies curses on cmd line when curses is disabled
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2247,11 +2247,14 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_nographic: display_type = DT_NOGRAPHIC; break; -#ifdef CONFIG_CURSES case QEMU_OPTION_curses: +#ifdef CONFIG_CURSES display_type = DT_CURSES; - break; +#else + fprintf(stderr, "Curses support is disabled\n"); + exit(1); #endif + break; case QEMU_OPTION_portrait: graphic_rotate = 1; break; |