--- /dev/null
+--- NVIDIA-Linux-x86_64-304.125-no-compat32/kernel/nv.c~ 2014-12-02 04:58:34.000000000 +0100
++++ NVIDIA-Linux-x86_64-304.125-no-compat32/kernel/nv.c 2015-03-30 21:52:46.978945686 +0200
+@@ -2026,7 +2026,11 @@
+ unsigned long i_arg
+ )
+ {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
++ return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg);
++#else
+ return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
++#endif
+ }
+
+ long nv_kern_compat_ioctl(
+@@ -2035,7 +2039,11 @@
+ unsigned long i_arg
+ )
+ {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
++ return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg);
++#else
+ return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
++#endif
+ }
+
+ /*
%define no_install_post_check_so 1
-%define rel 1
+%define rel 2
%define mname nvidia-legacy-304xx
%define pname xorg-driver-video-%{mname}
Summary: Linux Drivers for nVidia GeForce/Quadro Chips
Source5: 10-nvidia-modules.conf
Patch0: X11-driver-nvidia-GL.patch
Patch1: X11-driver-nvidia-desktop.patch
+Patch2: linux-3.19.patch
URL: http://www.nvidia.com/object/unix.html
BuildRequires: rpmbuild(macros) >= 1.701
%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
%endif
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{?with_kernel:%{expand:%build_kernel_packages}}