X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=qemu%2Fui%2Fspice-input.c;h=8eeebdbb2e2c55647d1ec808b58f0d260bc9f098;hb=8e1bfc88c439db6816d6ab11575caecc56d51ca4;hp=c342e0dcfb035163e3d67c5b057fd4d230f7f8e1;hpb=e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb;p=kvmfornfv.git
diff --git a/qemu/ui/spice-input.c b/qemu/ui/spice-input.c
index c342e0dcf..8eeebdbb2 100644
--- a/qemu/ui/spice-input.c
+++ b/qemu/ui/spice-input.c
@@ -15,10 +15,7 @@
* along with this program; if not, see .
*/
-#include
-#include
-#include
-#include
+#include "qemu/osdep.h"
#include
#include
@@ -107,7 +104,7 @@ typedef struct QemuSpicePointer {
static void spice_update_buttons(QemuSpicePointer *pointer,
int wheel, uint32_t button_mask)
{
- static uint32_t bmap[INPUT_BUTTON_MAX] = {
+ static uint32_t bmap[INPUT_BUTTON__MAX] = {
[INPUT_BUTTON_LEFT] = 0x01,
[INPUT_BUTTON_MIDDLE] = 0x04,
[INPUT_BUTTON_RIGHT] = 0x02,