Line
Link Here
|
0 |
-- a/src/int10/i10_v86.c |
0 |
++ b/src/int10/i10_v86.c |
Lines 27-32
Link Here
|
27 |
#include <string.h> |
27 |
#include <string.h> |
28 |
#ifdef __i386__ |
28 |
#ifdef __i386__ |
29 |
#include <sys/vm86.h> |
29 |
#include <sys/vm86.h> |
|
|
30 |
/* 2.6.26+ kernels don't define the legacy masks. */ |
31 |
#if defined(__linux__) && !defined(TF_MASK) |
32 |
#define TF_MASK X86_EFLAGS_TF |
33 |
#define IF_MASK X86_EFLAGS_IF |
34 |
#define NT_MASK X86_EFLAGS_NT |
35 |
#define VIF_MASK X86_EFLAGS_VIF |
36 |
#define VIP_MASK X86_EFLAGS_VIP |
37 |
#endif |
30 |
#else |
38 |
#else |
31 |
#include "vm86_struct.h" |
39 |
#include "vm86_struct.h" |
32 |
#endif |
40 |
#endif |