summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-04-14 19:43:21 +0900
committerNobuyoshi Nakada <[email protected]>2024-04-14 20:27:05 +0900
commit3368913be3838d152e42bde02a94219102b61f71 ()
tree627021617aa40255ee63540d55465084ecd7ed01 /ext/pty/pty.c
parent04ba96e619325d6e2c053ae93c2514e9252f0497 (diff)
[pty] Fix `ptsname_r` fallback
If `posix_openpt` is available, also `ptsname` should be available.
-rw-r--r--ext/pty/pty.c2
1 files changed, 1 insertions, 1 deletions
@@ -256,7 +256,7 @@ establishShell(int argc, VALUE *argv, struct pty_info *info,
RB_GC_GUARD(carg.execarg_obj);
}
-#if defined(HAVE_PTSNAME) && !defined(HAVE_PTSNAME_R)
/* glibc only, not obsolete interface on Tru64 or HP-UX */
static int
ptsname_r(int fd, char *buf, size_t buflen)