summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-11 16:07:25 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-03 22:35:17 +0100
commitc2b391d828f6a42d4f7f3247b90a7e27c090c332 (patch)
treed2866274af670c91e76c796264de0aeab0861a67
parentf65dc75bca71b50d91ac1cad8547e19ea5aec7b1 (diff)
downloadtdelibs-c2b391d828f6a42d4f7f3247b90a7e27c090c332.tar.gz
tdelibs-c2b391d828f6a42d4f7f3247b90a7e27c090c332.zip
Fix to use configured openpty usability condition
No reason to restrict only on OpenBSD and FreeBSD here. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 12364c9cc38c1561e5c0b2784c7ed6af4360cb74)
-rw-r--r--kdecore/kpty.cpp2
1 files changed, 1 insertions, 1 deletions
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) {