From 992a7168f0db5733fe4a6cbd2f40c6b1f2a150e0 Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Wed, 5 Nov 2008 11:44:03 -0500 Subject: [PATCH] Bug #17858: Fix Xvesa build on newer kernels. Not cherry picked from master, Xvesa is gone there. --- hw/kdrive/vesa/vm86.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/kdrive/vesa/vm86.h b/hw/kdrive/vesa/vm86.h index 3b4881471..81693081a 100644 --- a/hw/kdrive/vesa/vm86.h +++ b/hw/kdrive/vesa/vm86.h @@ -67,6 +67,13 @@ static void ErrorF(char*, ...); #include "os.h" #endif +#ifndef IF_MASK +#define IF_MASK X86_EFLAGS_IF +#endif +#ifndef IOPL_MASK +#define IOPL_MASK X86_EFLAGS_IOPL +#endif + typedef unsigned char U8; typedef unsigned short U16; typedef unsigned int U32;