I found a patch by way of the same error showing up on wget and Emacs mailing lists:
./malloc/dynarray-skeleton.c:195:13: error: expected identifier or '('
__nonnull ((1))
I've updated bug #59972 with my findings and a patch, which I'm attaching
here, too.
macos_cdefs-h.patch
Description: Binary data
