From 2c94312c3d9ae9ed2c61330764497c8537c4ac86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 8 Jul 2015 21:35:05 +0200 Subject: [PATCH] - fix building on linux 3.18.17+ - rel 3 --- linux-4.0.patch | 2 +- xorg-driver-video-nvidia-legacy-340xx.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-340xx.spec b/xorg-driver-video-nvidia-legacy-340xx.spec index 6073a20..81dc958 100644 --- a/xorg-driver-video-nvidia-legacy-340xx.spec +++ b/xorg-driver-video-nvidia-legacy-340xx.spec @@ -25,7 +25,7 @@ exit 1 %define no_install_post_check_so 1 -%define rel 2 +%define rel 3 %define pname xorg-driver-video-nvidia-legacy-340xx Summary: Linux Drivers for nVidia GeForce/Quadro Chips Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez -- 2.43.0