commit 16da86e829fa5d09d7c3c0fac90453417272bcde
Author: Jan Palus <[email protected]>
Date:   Sat Dec 28 23:56:28 2019 +0100

    patch to fix build with recent kernels

 acpi_call-build.patch | 13 +++++++++++++
 acpi_call.spec        |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/acpi_call.spec b/acpi_call.spec
index e81c3c5..17918aa 100644
--- a/acpi_call.spec
+++ b/acpi_call.spec
@@ -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}
diff --git a/acpi_call-build.patch b/acpi_call-build.patch
new file mode 100644
index 0000000..cfb9bee
--- /dev/null
+++ b/acpi_call-build.patch
@@ -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");
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/acpi_call.git/commitdiff/64154a1f07805923a6fa508f75348e64e496a5b1

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to