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:
committed by
Chih-Hsuan Yen
parent
35464957c6
commit
0086b184bf
@@ -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 //
|
||||
|
||||
@@ -35,9 +35,7 @@ public:
|
||||
KPtyPrivate(KPty* parent);
|
||||
virtual ~KPtyPrivate();
|
||||
|
||||
#ifndef HAVE_OPENPTY
|
||||
bool chownpty(bool grant);
|
||||
#endif
|
||||
|
||||
int masterFd;
|
||||
int slaveFd;
|
||||
|
||||
Reference in New Issue
Block a user