summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2018-09-12 14:02:27 +0200
committer Matteo Bernardini2019-08-10 06:59:44 +0200
commit156c7c27e264fccd47b5bb17c1f53054a17d6391 (patch)
tree4f9dbabc0e76e56e6893bdc39fc074692a3bff63
parent4b75a86e141dc33934610bafa3feef16dd33e1b3 (diff)
downloadslackbuilds-acpi_call.tar.gz
system/acpi_call: Fix for the newer kernels.acpi_call
Thanks to giomat on LQ for reporting! Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--system/acpi_call/acpi_call.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/acpi_call/acpi_call.SlackBuild b/system/acpi_call/acpi_call.SlackBuild
index 9be2bed29b..0271eae2d7 100644
--- a/system/acpi_call/acpi_call.SlackBuild
+++ b/system/acpi_call/acpi_call.SlackBuild
@@ -66,6 +66,9 @@ find -L . \
patch -p0 < $CWD/fix-acpi-include.patch
+# Fix build with Linux >= 4.12
+sed -i 's|asm/uaccess.h|linux/uaccess.h|' acpi_call.c
+
make KDIR=$KERNELPATH
mkdir -p $PKG/lib/modules/$KERNEL/misc