https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404
--- Comment #5 from Gaius Mulley <gaius at gcc dot gnu.org> --- I've committed the patch above - since the source tree without it definitely has a mismatched prototype. The exit issue needs to be resolved before this PR can close.