From 12364c9cc38c1561e5c0b2784c7ed6af4360cb74 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 --- tdecore/kpty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tdecore/kpty.cpp') 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) { -- cgit v1.2.1