Browse Source

ddcxinfo: added a patch to be able to build with newer kernel that do not export legacy flags

user/chris/old/ruby
Nagy Karoly Gabriel 15 years ago committed by Alejandro Mery
parent
commit
30db612a01
  1. 20
      x11/ddcxinfo/ddcxinfo-knoppix-kernel-headers.patch

20
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 <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>
Loading…
Cancel
Save