Dash:
[t2.git] / package / x11 / ddcxinfo / hotfix.patch
blobfce45f365819dffd241ecc204dea738ac79ce095
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../ddcxinfo/hotfix.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Attention: same fix in base/suspend!
19 diff -Nur ddcxinfo-kanotix-0.6.19-orig/lrmi.c ddcxinfo-kanotix-0.6.19/lrmi.c
20 --- ddcxinfo-kanotix-0.6.19-orig/lrmi.c 2009-09-25 21:59:15.000000000 +0000
21 +++ ddcxinfo-kanotix-0.6.19/lrmi.c 2009-09-25 21:59:51.000000000 +0000
22 @@ -28,6 +28,14 @@
24 #include "lrmi.h"
26 +#ifndef TF_MASK
27 +#define TF_MASK X86_EFLAGS_TF
28 +#define IF_MASK X86_EFLAGS_IF
29 +#define IOPL_MASK X86_EFLAGS_IOPL
30 +#define VIF_MASK X86_EFLAGS_VIF
31 +#define VIP_MASK X86_EFLAGS_VIP
32 +#endif
34 #define REAL_MEM_BASE ((void *)0x10000)
35 #define REAL_MEM_SIZE 0x10000
36 #define REAL_MEM_BLOCKS 0x100