https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63471
--- Comment #7 from Janne Blomqvist <jb at gcc dot gnu.org> --- (In reply to dave.anglin from comment #3) > On some platforms (MacOS 10.4 and Solaris 11), ttyname_r may return a > 'char *', not 'int'. FWIW, libgfortran uses the AC_USE_SYSTEM_EXTENSIONS macro, which on Solaris defines _POSIX_PTHREAD_SEMANTICS making it prefer the POSIX _r functions instead of the POSIX draft _r versions. I'm not sure we care about OS X 10.4 anymore? Newer versions apparently provide the POSIX ttyname_r. So, are you planning on enabling _REENTRANT in the HP-UX 11 driver like you did for 10, or do you want to solve this in some other way?