https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117857
--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Gleb Mazovetskiy from comment #8) > > The warning was changed to an error by default for GCC 14 > > Ah, makes sense, thanks for explaining. I'm guessing it went unnoticed > because the failure conditions for `ttyname_r` must be quite rare. FWIW, if you come up with a suitable patch, then it can be considered (even if only for my GH darwin branches, depending on how invasive it might be) - but IMO the workaround in the attachment is not the right approach. To support modern C++ and C we need the UNIX03 version (with support of c99 libc etc.) So I suggest your efforts are best directed to figuring out what we need to do to make sure that the Darwin8 headers are consumed in a way that enables UNIX03.