You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
735 B
20 lines
735 B
http://gentoo-overlays.zugaina.org/sabayon/portage/sys-apps/ddcxinfo-knoppix/files/ddcxinfo-knoppix-kernel-headers.patch |
|
--- ./lrmi.c.orig 2008-12-15 15:27:02.000000000 +0000 |
|
+++ ./lrmi.c 2008-12-15 15:29:03.000000000 +0000 |
|
@@ -15,6 +15,16 @@ This software has NO WARRANTY. Use it a |
|
#include <string.h> |
|
#include <sys/io.h> |
|
#include <asm/vm86.h> |
|
+/* 2.6.26+ kernels don't define the legacy masks. */ |
|
+#if defined(__linux__) && !defined(TF_MASK) |
|
+ #define TF_MASK X86_EFLAGS_TF |
|
+ #define IF_MASK X86_EFLAGS_IF |
|
+ #define NT_MASK X86_EFLAGS_NT |
|
+ #define VIF_MASK X86_EFLAGS_VIF |
|
+ #define VIP_MASK X86_EFLAGS_VIP |
|
+ #define IOPL_MASK X86_EFLAGS_IOPL |
|
+#endif |
|
+ |
|
|
|
#ifdef USE_LIBC_VM86 |
|
#include <sys/vm86.h>
|
|
|