am f6304733: Merge "Fix "ptsname is not thread-safe; use ptsname_r instead" build break."

* commit 'f6304733878628b6a003a4ea3588b9fbb5943ce5':
  Fix "ptsname is not thread-safe; use ptsname_r instead" build break.