aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorChris Rees <utisoft@gmail.com>2011-01-24 17:03:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-01-24 17:04:59 +0100
commite3c127d846eb2febbdb86bcf6c0c92622ab98eea (patch)
treec3d4458c20e13cce49bf049efee798de650eadab /libbb
parent271c0ce379be4b59d28e17f4774f5a078e77f64b (diff)
downloadbusybox-e3c127d846eb2febbdb86bcf6c0c92622ab98eea.tar.gz
FreeBSD compat
Signed-off-by: Chris Rees <utisoft@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getpty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/getpty.c b/libbb/getpty.c
index ea653b0b6..6a15cff2f 100644
--- a/libbb/getpty.c
+++ b/libbb/getpty.c
@@ -19,7 +19,7 @@ int FAST_FUNC xgetpty(char *line)
if (p > 0) {
grantpt(p); /* chmod+chown corresponding slave pty */
unlockpt(p); /* (what does this do?) */
-#if 0 /* if ptsname_r is not available... */
+#ifndef HAVE_PTSNAME_R
const char *name;
name = ptsname(p); /* find out the name of slave pty */
if (!name) {