diff --git a/packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch b/packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch new file mode 100644 index 0000000000..d44663e8f4 --- /dev/null +++ b/packages/x11/driver/xf86-video-nvidia/patches/xf86-video-nvidia-0100-kernel-4.14.9.patch @@ -0,0 +1,15 @@ +diff --git a/kernel/nvidia-uvm/uvm8_va_block.c b/kernel/nvidia-uvm/uvm8_va_block.c +index 99f6f9b..a453eb6 100644 +--- a/kernel/nvidia-uvm/uvm8_va_block.c ++++ b/kernel/nvidia-uvm/uvm8_va_block.c +@@ -36,6 +36,10 @@ + #include "uvm8_perf_prefetch.h" + #include "uvm8_mem.h" + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,9) ++#include ++#endif ++ + typedef enum + { + BLOCK_PTE_OP_MAP,