FreeBSD compat
Signed-off-by: Chris Rees <utisoft@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
271c0ce379
commit
e3c127d846
@@ -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) {
|
||||
|
Reference in New Issue
Block a user