From 30db612a01dd503b571982f4d29af7f228ad9562 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Fri, 13 Nov 2009 16:26:07 +0100 Subject: [PATCH] ddcxinfo: added a patch to be able to build with newer kernel that do not export legacy flags --- .../ddcxinfo-knoppix-kernel-headers.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 x11/ddcxinfo/ddcxinfo-knoppix-kernel-headers.patch 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