Check version of ptsname_r.