mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix build on arm.
This commit is contained in:
parent
9d5682a2bb
commit
ece9b43f7b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453935
@ -14,8 +14,6 @@ COMMENT= Tools from the ACPI Component Architecture (ACPICA) project
|
||||
LICENSE= BSD3CLAUSE GPLv2
|
||||
LICENSE_COMB= dual
|
||||
|
||||
BROKEN_armv6= fails to compile: comparison of constant -1 with expression of type char is always true
|
||||
BROKEN_aarch64= fails to compile: comparison of constant -1 with expression of type char is always true
|
||||
BROKEN_powerpc64= fails to compile: comparison is always true due to limited range of data type
|
||||
|
||||
USES= gmake
|
||||
|
@ -0,0 +1,26 @@
|
||||
--- source/compiler/aslsupport.l.orig 2017-09-29 15:34:59 UTC
|
||||
+++ source/compiler/aslsupport.l
|
||||
@@ -525,7 +525,7 @@ static void
|
||||
count (
|
||||
int Type)
|
||||
{
|
||||
- int i;
|
||||
+ int c, i;
|
||||
|
||||
|
||||
switch (Type)
|
||||
@@ -547,10 +547,12 @@ count (
|
||||
break;
|
||||
}
|
||||
|
||||
- for (i = 0; (yytext[i] != 0) && (yytext[i] != EOF); i++)
|
||||
+ i = 0;
|
||||
+ while ((c = yytext[i]) != 0 && c != EOF)
|
||||
{
|
||||
- AslInsertLineBuffer (yytext[i]);
|
||||
+ AslInsertLineBuffer (c);
|
||||
*Gbl_LineBufPtr = 0;
|
||||
+ i++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user