Share Pastebin
Guest
Public paste!

Igor

By: a guest | Mar 23rd, 2008 | Syntax: None | Size: 1.20 KB | Hits: 256 | Expires: Never
Copy text to clipboard
  1. diff -ru vmmon-only.org/include/vcpuset.h vmmon-only/include/vcpuset.h
  2. --- vmmon-only.org/include/vcpuset.h    2008-03-03 21:16:13.000000000 -0500
  3. +++ vmmon-only/include/vcpuset.h        2008-03-23 02:30:45.000000000 -0400
  4.  -71,7 +71,7 @@
  5.  #define ffs(x) ffs_x86_64(x)
  6.  
  7.  #elif defined MODULE
  8. -   #include "asm/bitops.h"
  9. +   #include "linux/bitops.h"
  10.  #elif defined __APPLE__ && defined KERNEL
  11.     /*
  12.      * XXXMACOS An ugly hack to resolve redefinition of PAGE_ defines
  13. diff -ru vmmon-only.org/include/vm_basic_types.h vmmon-only/include/vm_basic_types.h
  14. --- vmmon-only.org/include/vm_basic_types.h     2008-03-03 21:16:13.000000000 -0500
  15. +++ vmmon-only/include/vm_basic_types.h 2008-03-23 02:25:39.000000000 -0400
  16.  -163,6 +163,8 @@
  17.  #   endif
  18.  
  19.  #   ifndef _STDINT_H
  20. +#      include <linux/version.h>
  21. +#      if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)
  22.  #      ifdef VM_I386
  23.  #         ifdef VM_X86_64
  24.               typedef uint64    uintptr_t;
  25.  -175,6 +177,7 @@
  26.            typedef uint64    uintptr_t;
  27.  #      endif
  28.  #   endif
  29. +#   endif
  30.  #endif
  31.  
  32.  
  33.  -270,6 +273,7 @@
  34.  #define CHOOSE_PERCENT  asPercent(-1)
  35.  
  36.  
  37. +#include <linux/types.h>
  38.  typedef uintptr_t VA;
  39.  typedef uintptr_t VPN;