From 9187a27af753b79416464d0a62aa699fd3635de4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 8 Jul 2015 21:28:54 +0200 Subject: [PATCH] - 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/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 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 -- 2.44.0