print/ghostscript10: fix compilation issue with LLVM > 14
This issue reported upstream with
https://bugs.ghostscript.com/show_bug.cgi?id=707649 has been fixed and
one-off patch backported to this port.
PR: 277667
Approved by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D44339