]> git.pld-linux.org Git - packages/acpi_call.git/commitdiff
fix build with kernel 4.14
authorJan Palus <atler@pld-linux.org>
Sat, 28 Dec 2019 23:27:33 +0000 (00:27 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 28 Dec 2019 23:27:33 +0000 (00:27 +0100)
acpi_call-build.patch

index cfb9beeb3f538010e06d0e35ed16a1b40d328b20..b4ebb91e8fa34641f0538f61e830b3247b39832b 100644 (file)
@@ -1,11 +1,14 @@
 diff -urN acpi_call-1.1.0.orig/acpi_call.c acpi_call-1.1.0/acpi_call.c
 --- acpi_call-1.1.0.orig/acpi_call.c   2013-07-05 18:06:13.000000000 +0200
-+++ acpi_call-1.1.0/acpi_call.c        2019-12-28 23:52:40.624217110 +0100
-@@ -6,7 +6,8 @@
++++ acpi_call-1.1.0/acpi_call.c        2019-12-29 00:25:36.948131987 +0100
+@@ -5,8 +5,11 @@
+ #include <linux/version.h>
  #include <linux/proc_fs.h>
  #include <linux/slab.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
  #include <asm/uaccess.h>
 -#include <acpi/acpi.h>
++#endif
 +#include <linux/acpi.h>
 +#include <linux/uaccess.h>
  
This page took 0.068826 seconds and 4 git commands to generate.