OpenSDE Packages Database (without history before r20070)
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

  1. http://gentoo-overlays.zugaina.org/sabayon/portage/sys-apps/ddcxinfo-knoppix/files/ddcxinfo-knoppix-kernel-headers.patch
  2. --- ./lrmi.c.orig 2008-12-15 15:27:02.000000000 +0000
  3. +++ ./lrmi.c 2008-12-15 15:29:03.000000000 +0000
  4. @@ -15,6 +15,16 @@ This software has NO WARRANTY. Use it a
  5. #include <string.h>
  6. #include <sys/io.h>
  7. #include <asm/vm86.h>
  8. +/* 2.6.26+ kernels don't define the legacy masks. */
  9. +#if defined(__linux__) && !defined(TF_MASK)
  10. + #define TF_MASK X86_EFLAGS_TF
  11. + #define IF_MASK X86_EFLAGS_IF
  12. + #define NT_MASK X86_EFLAGS_NT
  13. + #define VIF_MASK X86_EFLAGS_VIF
  14. + #define VIP_MASK X86_EFLAGS_VIP
  15. + #define IOPL_MASK X86_EFLAGS_IOPL
  16. +#endif
  17. +
  18. #ifdef USE_LIBC_VM86
  19. #include <sys/vm86.h>