The Void patch changes more than is now necssary for musl, and one of those things is that it stops including <sys/io.h>, causing the ioperm function to be implicitly declared. This will be a hard error with GCC 14. The Gentoo patch only changes the one thing currently needed for musl.