diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-11 16:07:25 +0900 |
---|---|---|
committer | OBATA Akio <obache@wizdas.com> | 2020-08-11 16:07:25 +0900 |
commit | 12364c9cc38c1561e5c0b2784c7ed6af4360cb74 (patch) | |
tree | 3a457200c51e99e56268713b2b532d9fec5e019c /tdecore | |
parent | ce064fcb0190ef4b753668489a62f1e84d93c9a9 (diff) | |
download | tdelibs-12364c9cc38c1561e5c0b2784c7ed6af4360cb74.tar.gz tdelibs-12364c9cc38c1561e5c0b2784c7ed6af4360cb74.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>
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/kpty.cpp | 2 |
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) { |