Apply the patch and use a simple program to test the system call.
One such program can be found [[https://bz-attachments.freebsd.org/attachment.cgi?id=252635|here]].
AFAICT, this change is [[https://pubs.opengroup.org/onlinepubs/9799919799/|POSIX-compliant]].