git: 0ecb98de91f1 - main - sysutils/acpi_call: fix build after src:df38ada2931f

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 17:30:45 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0ecb98de91f1386b34df8b86afb60424b8d51761

commit 0ecb98de91f1386b34df8b86afb60424b8d51761
Author:     Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
AuthorDate: 2021-12-21 13:13:24 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2021-12-21 17:29:25 +0000

    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)
---
 sysutils/acpi_call/files/patch-acpi__call.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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);