Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libx86/files: libx86-0.99-ifmask.patch
Date: Sat, 06 Sep 2008 20:45:00
Message-Id: E1Kc4eP-0006M3-Rm@stork.gentoo.org
1 ulm 08/09/06 20:44:57
2
3 Added: libx86-0.99-ifmask.patch
4 Log:
5 Fix compile failure with linux-headers-2.6.26, bug 235599.
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
7
8 Revision Changes Path
9 1.1 dev-libs/libx86/files/libx86-0.99-ifmask.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libx86/files/libx86-0.99-ifmask.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libx86/files/libx86-0.99-ifmask.patch?rev=1.1&content-type=text/plain
13
14 Index: libx86-0.99-ifmask.patch
15 ===================================================================
16 --- lrmi.c.orig 2008-09-06 12:24:36.070136428 +0200
17 +++ lrmi.c 2008-09-06 12:28:10.584287458 +0200
18 @@ -55,6 +55,18 @@ OTHER DEALINGS IN THE SOFTWARE.
19 #include "x86-common.h"
20
21 #if defined(__linux__)
22 +#ifndef TF_MASK
23 +#define TF_MASK X86_EFLAGS_TF
24 +#endif
25 +#ifndef IF_MASK
26 +#define IF_MASK X86_EFLAGS_IF
27 +#endif
28 +#ifndef IOPL_MASK
29 +#define IOPL_MASK X86_EFLAGS_IOPL
30 +#endif
31 +#ifndef VIF_MASK
32 +#define VIF_MASK X86_EFLAGS_VIF
33 +#endif
34 #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
35 #elif defined(__NetBSD__) || defined(__FreeBSD__)
36 #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)