Skip to content

Commit 48274c7

Browse files
committed
Fix building issue on OSX.
1 parent ddd71ac commit 48274c7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/kpty.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,12 @@ KPtyPrivate::~KPtyPrivate()
174174
{
175175
}
176176

177-
#ifndef HAVE_OPENPTY
178177
bool KPtyPrivate::chownpty(bool)
179178
{
180179
// return !QProcess::execute(KStandardDirs::findExe("kgrantpty"),
181180
// QStringList() << (grant?"--grant":"--revoke") << QString::number(masterFd));
182181
return true;
183182
}
184-
#endif
185183

186184
/////////////////////////////
187185
// public member functions //

lib/kpty_p.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ class KPtyPrivate {
3535
KPtyPrivate(KPty* parent);
3636
virtual ~KPtyPrivate();
3737

38-
#ifndef HAVE_OPENPTY
3938
bool chownpty(bool grant);
40-
#endif
4139

4240
int masterFd;
4341
int slaveFd;

0 commit comments

Comments
 (0)