Overlay/x11-drivers/nvidia-drivers/files/nvidia-drivers-334.21-linux...

16 lines
395 B
Diff

--- a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -273,8 +273,12 @@
#endif
#if !defined(NV_VMWARE) && defined(CONFIG_ACPI)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
#include <acpi/acpi.h>
#include <acpi/acpi_drivers.h>
+#else
+#include <linux/acpi.h>
+#endif
#if defined(NV_ACPI_DEVICE_OPS_HAS_MATCH) || defined(ACPI_VIDEO_HID)
#define NV_LINUX_ACPI_EVENTS_SUPPORTED 1
#endif