]> git.pld-linux.org Git - packages/xorg-driver-video-nvidia-legacy-340xx.git/blobdiff - linux-4.0.patch
- fix building on linux 3.18.17+
[packages/xorg-driver-video-nvidia-legacy-340xx.git] / linux-4.0.patch
index fcbc23bb5d32e20b23dee9114a811169f85360c7..ae77d1347e3e5ee549c63fd192fd7655702d174b 100644 (file)
@@ -4,7 +4,7 @@
  #define NV_SPIN_UNLOCK(lock)      spin_unlock(lock)
  #define NV_SPIN_UNLOCK_WAIT(lock) spin_unlock_wait(lock)
  
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) || ((LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,17)) && (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)))
 +#define read_cr4 __read_cr4
 +#define write_cr4 __write_cr4
 +#endif
This page took 0.030689 seconds and 4 git commands to generate.