From c2b391d828f6a42d4f7f3247b90a7e27c090c332 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Tue, 11 Aug 2020 16:07:25 +0900 Subject: Fix to use configured openpty usability condition No reason to restrict only on OpenBSD and FreeBSD here. Signed-off-by: OBATA Akio (cherry picked from commit 12364c9cc38c1561e5c0b2784c7ed6af4360cb74) --- kdecore/kpty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdecore/kpty.cpp b/kdecore/kpty.cpp index 035ca530a..45e9c6ffd 100644 --- a/kdecore/kpty.cpp +++ b/kdecore/kpty.cpp @@ -308,7 +308,7 @@ bool KPty::open() if (d->masterFd >= 0) return true; -#if defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(HAVE_OPENPTY) char cpty[16]; if (openpty(&d->masterFd, &d->slaveFd, cpty, NULL, &d->winSize) == 0) { -- cgit v1.2.1