summaryrefslogtreecommitdiffstats
path: root/system/acpi_call
diff options
context:
space:
mode:
author Matteo Bernardini2021-01-09 11:36:13 +0100
committer Matteo Bernardini2021-01-09 11:36:13 +0100
commitd53d61a1a0572aa2058e5324fd66c01c2ed3eccf (patch)
treed41f2a4360d572bdbec8081662b0f93b4aa2f8af /system/acpi_call
parenta60e2f392c2bd7cee33c089073f9d5e5169f422d (diff)
downloadslackbuilds-current-20210109.1.tar.gz
20210109.1 global branch merge.current-20210109.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/acpi_call')
-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 cbba19ee17..61e7be7220 100644
--- a/system/acpi_call/acpi_call.SlackBuild
+++ b/system/acpi_call/acpi_call.SlackBuild
@@ -67,6 +67,9 @@ find -L . \
patch -p0 < $CWD/fix-acpi-include.patch
patch -p0 < $CWD/fix-5.x-kernel.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