diff options
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-346.35.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-346.35.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-346.35.ebuild index c86373e8..027c511a 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-346.35.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-346.35.ebuild @@ -103,7 +103,9 @@ src_prepare() { if kernel_is lt 2 6 9 ; then eerror "You must build this against 2.6.9 or higher kernels." fi - + if kernel_is ge 4 0 ; then + epatch "${FILESDIR}"/${PN}-4.0.patch + fi # If greater than 2.6.5 use M= instead of SUBDIR= # convert_to_m "${NV_SRC}"/Makefile.kbuild fi |