python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libx86 / constants.patch
blob10fc829d67435e050adc465477232abf70c89030
1 --- libx86/lrmi.c 2008-09-06 12:24:36.070136428 +0200
2 +++ libx86/lrmi.c 2008-09-06 12:28:10.584287458 +0200
3 @@ -56,5 +56,17 @@
5 #if defined(__linux__)
6 +#ifndef TF_MASK
7 +#define TF_MASK X86_EFLAGS_TF
8 +#endif
9 +#ifndef IF_MASK
10 +#define IF_MASK X86_EFLAGS_IF
11 +#endif
12 +#ifndef IOPL_MASK
13 +#define IOPL_MASK X86_EFLAGS_IOPL
14 +#endif
15 +#ifndef VIF_MASK
16 +#define VIF_MASK X86_EFLAGS_VIF
17 +#endif
18 #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
19 #elif defined(__NetBSD__) || defined(__FreeBSD__)
20 #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)