summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-11 16:07:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-08-12 14:30:22 +0900
commit24a2027ee7caa515e24998fb21000dfe18f6ebcb (patch)
tree9535133d4f47514bb4e80456c4e4cc595217fea0
parentfe712166fb6cef31c0285667fd1204f60c54b770 (diff)
downloadtdelibs-24a2027ee7caa515e24998fb21000dfe18f6ebcb.tar.gz
tdelibs-24a2027ee7caa515e24998fb21000dfe18f6ebcb.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--tdecore/kpty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/kpty.cpp b/tdecore/kpty.cpp
index 1e5806133..6e279748b 100644
--- a/tdecore/kpty.cpp
+++ b/tdecore/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) {