dillo: Avoid ctype(3) abuses
Backport a patch shared and applied upstream via commit
5e2bc90ea2f80dce3a20ef9c1a282e11d6d67236 to stop abusing ctype(3) functions.
Now dillo should no longer crashes due ctype(3) on NetBSD>=11.
PKGREVISION++
fix a long standing problem with cabs*() fixes up on netbsd
netbsd has the cabs(3), cabsf(3), and cabsl(3) functions renamed with
__c99_ prefixes on them, and may not all be present with the old names.
there's code in netbsd.cc to fix up these names, but it's only invoked
by a some of our target CPUs -- x86, vax, and arm64, but the rest fail.
the problem is that config/netbsd.h defines SUBTARGET_INIT_BUILTINS to
a function that does this fix up, but this define it only consumed inside
the TARGET_INIT_BUILTINS's macro function if defined. looks like due to
the supported users of SUBTARGET_INIT_BUILTINS currently, it was added
for darwin support, and nothing else.
add calls to SUBTARGET_INIT_BUILTINS if defined to each of the alpha, arm,
ia64, m68k, mips, pa, riscv, sh, and sparc ports.
tested on sparc64 (where "cabsl" is missing entirely), mips64, and amd64.
[5 lines not shown]
dillo: Adjust patches based on upstream commit
Reimport them by cherry-picking Dillo's commit
5e2bc90ea2f80dce3a20ef9c1a282e11d6d67236.
Should be easier to G/C them for the next Dillo release given that they
will all likely ends up as reversed patches then.