diff --git a/x11/ddcxinfo/ddcxinfo-knoppix-kernel-headers.patch b/x11/ddcxinfo/ddcxinfo-knoppix-kernel-headers.patch new file mode 100644 index 000000000..48a3ba949 --- /dev/null +++ b/x11/ddcxinfo/ddcxinfo-knoppix-kernel-headers.patch @@ -0,0 +1,20 @@ +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 + #include + #include ++/* 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