From 0086b184bfc750ff9ee318d06339e71b83ae12e1 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Tue, 5 Mar 2019 05:55:35 -0500 Subject: [PATCH] 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. --- lib/kpty.cpp | 2 -- lib/kpty_p.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/kpty.cpp b/lib/kpty.cpp index 542bde3..b42bf95 100644 --- a/lib/kpty.cpp +++ b/lib/kpty.cpp @@ -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 // diff --git a/lib/kpty_p.h b/lib/kpty_p.h index 4f865b8..28ed2a5 100644 --- a/lib/kpty_p.h +++ b/lib/kpty_p.h @@ -35,9 +35,7 @@ public: KPtyPrivate(KPty* parent); virtual ~KPtyPrivate(); -#ifndef HAVE_OPENPTY bool chownpty(bool grant); -#endif int masterFd; int slaveFd;