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

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