KPty: Don't conditionalize chownpty existence on HAVE_OPENPTY

This fixes the build on Mac, which is the only place where HAVE_OPENPTY
is actually defined.
This commit is contained in:
Andrew Janke
2019-03-05 05:55:35 -05:00
committed by Chih-Hsuan Yen
parent 35464957c6
commit 0086b184bf
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -174,14 +174,12 @@ KPtyPrivate::~KPtyPrivate()
{
}
#ifndef HAVE_OPENPTY
bool KPtyPrivate::chownpty(bool)
{
// return !QProcess::execute(KStandardDirs::findExe("kgrantpty"),
// QStringList() << (grant?"--grant":"--revoke") << QString::number(masterFd));
return true;
}
#endif
/////////////////////////////
// public member functions //
-2
View File
@@ -35,9 +35,7 @@ public:
KPtyPrivate(KPty* parent);
virtual ~KPtyPrivate();
#ifndef HAVE_OPENPTY
bool chownpty(bool grant);
#endif
int masterFd;
int slaveFd;