From e3c127d846eb2febbdb86bcf6c0c92622ab98eea Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Mon, 24 Jan 2011 17:03:36 +0100 Subject: FreeBSD compat Signed-off-by: Chris Rees Signed-off-by: Denys Vlasenko --- libbb/getpty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/getpty.c') 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) { -- cgit v1.2.3