]> git.proxmox.com Git - qemu.git/commit - console.h
curses: fix garbling when chtype != long
authorDevin J. Pohly <djpohly+launchpad@gmail.com>
Wed, 7 Sep 2011 19:44:36 +0000 (15:44 -0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 9 Sep 2011 17:58:16 +0000 (12:58 -0500)
commitdf00bed0fa30a6f5712456e7add783e470c534c9
tree059a74bafa5d495988647ba3b4ef36d2b0bed684
parent3b86b13ab07407fc8c6ac0efbd717fe51df1cad7
curses: fix garbling when chtype != long

Qemu currently assumes that chtype is typedef'd to unsigned long, but
this is not necessarily the case (ncurses, for instance, can configure
this at build-time).  This patch uses the predefined chtype if qemu is
configured for curses support and falls back to unsigned long otherwise.

Fixes bug 568614.

Signed-off-by: Devin J. Pohly <djpohly+launchpad@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
console.c
console.h