aboutsummaryrefslogtreecommitdiff
path: root/sysutils/acpi_call
diff options
context:
space:
mode:
authorTomoaki AOKI <junchoon@dec.sakura.ne.jp>2021-12-21 13:13:24 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2021-12-21 17:29:25 +0000
commit0ecb98de91f1386b34df8b86afb60424b8d51761 (patch)
treec3bd1ad1c131ca453ad7af0e2dfcf4bfc78fcbad /sysutils/acpi_call
parent346625d118c87f6c6465a614e7d9ad307fd1e39c (diff)
downloadports-0ecb98de91f1386b34df8b86afb60424b8d51761.tar.gz
ports-0ecb98de91f1386b34df8b86afb60424b8d51761.zip
sysutils/acpi_call: fix build after src:df38ada2931f
error: use of undeclared identifier MAXPATHLEN sys/module.h SHALL be included AFTER sys/param.h PR: 260333 Reported by: junchoon@dec.sakura.ne.jp Approved by: gelraen.ua@gmail.com (maintainer, timeout 6 days)
Diffstat (limited to 'sysutils/acpi_call')
-rw-r--r--sysutils/acpi_call/files/patch-acpi__call.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/acpi_call/files/patch-acpi__call.c b/sysutils/acpi_call/files/patch-acpi__call.c
index fbae58efa103..39d1785bae2d 100644
--- a/sysutils/acpi_call/files/patch-acpi__call.c
+++ b/sysutils/acpi_call/files/patch-acpi__call.c
@@ -1,5 +1,17 @@
--- acpi_call.c.orig 2011-11-07 05:35:10 UTC
+++ acpi_call.c
+@@ -29,10 +29,10 @@
+ */
+
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <sys/module.h>
+ #include <sys/systm.h>
+ #include <sys/errno.h>
+-#include <sys/param.h>
+ #include <sys/kernel.h>
+ #if __FreeBSD__ >= 8
+ # include <contrib/dev/acpica/include/acpi.h>
@@ -45,18 +45,97 @@
void acpi_call_fixup_pointers(ACPI_OBJECT *p, UINT8 *orig);