summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2018-09-12 14:02:27 +0200
committer Matteo Bernardini2019-12-07 19:09:17 +0100
commit66ad14bde9aaf80d493a5d690ce780de1f098435 (patch)
treebdbf4c2495b0ca44dee76239ea94a7accc3e607e
parent4b7b01aae75cc2cc8db1eedc90b43f8400bef53e (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