[packages/xorg-driver-video-nvidia-legacy-304xx] - fix building on linux 3.18.17+ - rel 4

baggins baggins at pld-linux.org
Wed Jul 8 21:29:18 CEST 2015


commit 9187a27af753b79416464d0a62aa699fd3635de4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jul 8 21:28:54 2015 +0200

    - fix building on linux 3.18.17+
    - rel 4

 linux-4.0.patch                            | 2 +-
 xorg-driver-video-nvidia-legacy-304xx.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xorg-driver-video-nvidia-legacy-304xx.spec b/xorg-driver-video-nvidia-legacy-304xx.spec
index b62a18d..4f547ea 100644
--- a/xorg-driver-video-nvidia-legacy-304xx.spec
+++ b/xorg-driver-video-nvidia-legacy-304xx.spec
@@ -25,7 +25,7 @@ exit 1
 
 %define		no_install_post_check_so 1
 
-%define		rel	3
+%define		rel	4
 %define		mname	nvidia-legacy-304xx
 %define		pname	xorg-driver-video-%{mname}
 Summary:	Linux Drivers for nVidia GeForce/Quadro Chips
diff --git a/linux-4.0.patch b/linux-4.0.patch
index fcbc23b..ae77d13 100644
--- a/linux-4.0.patch
+++ b/linux-4.0.patch
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia-legacy-304xx.git/commitdiff/9187a27af753b79416464d0a62aa699fd3635de4



More information about the pld-cvs-commit mailing list