Skip to content

Commit

Permalink
Fix building issue on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordfish90 committed Nov 24, 2018
1 parent ddd71ac commit 48274c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/kpty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
2 changes: 0 additions & 2 deletions lib/kpty_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class KPtyPrivate {
KPtyPrivate(KPty* parent);
virtual ~KPtyPrivate();

#ifndef HAVE_OPENPTY
bool chownpty(bool grant);
#endif

int masterFd;
int slaveFd;
Expand Down

0 comments on commit 48274c7

Please sign in to comment.