]> git.pld-linux.org Git - packages/acpi_call.git/commitdiff
patch to fix build with recent kernels
authorJan Palus <atler@pld-linux.org>
Sat, 28 Dec 2019 22:56:28 +0000 (23:56 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 28 Dec 2019 23:18:02 +0000 (00:18 +0100)
acpi_call-build.patch [new file with mode: 0644]
acpi_call.spec

diff --git a/acpi_call-build.patch b/acpi_call-build.patch
new file mode 100644 (file)
index 0000000..cfb9bee
--- /dev/null
@@ -0,0 +1,13 @@
+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 @@
+ #include <linux/proc_fs.h>
+ #include <linux/slab.h>
+ #include <asm/uaccess.h>
+-#include <acpi/acpi.h>
++#include <linux/acpi.h>
++#include <linux/uaccess.h>
+ MODULE_LICENSE("GPL");
index e81c3c5f01413cea12d27fa58b26ed14bffdf3da..17918aab0260d5765074dc7934fa0368b24bac96 100644 (file)
@@ -18,6 +18,7 @@ License:      GPL v2
 Group:         Base/Kernel
 Source0:       https://github.com/mkottman/acpi_call/archive/v%{version}/%{pname}-%{version}.tar.gz
 # Source0-md5: f69d40e130b0e5ed17ce8adb19e6dda1
+Patch0:                %{pname}-build.patch
 URL:           https://github.com/mkottman/acpi_call
 %if %{with kernel}
 %if %{with dist_kernel}
@@ -48,6 +49,7 @@ A linux kernel module that enables calls to ACPI methods through
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %if %{with kernel}
This page took 0.062469 seconds and 4 git commands to generate.