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 12364c9cc3)
v3.5.13-sru
OBATA Akio 4 years ago committed by Slávek Banko
parent f65dc75bca
commit c2b391d828
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -308,7 +308,7 @@ bool KPty::open()
if (d->masterFd >= 0) if (d->masterFd >= 0)
return true; return true;
#if defined(__OpenBSD__) || defined(__FreeBSD__) #if defined(HAVE_OPENPTY)
char cpty[16]; char cpty[16];
if (openpty(&d->masterFd, &d->slaveFd, cpty, NULL, &d->winSize) == 0) { if (openpty(&d->masterFd, &d->slaveFd, cpty, NULL, &d->winSize) == 0) {

Loading…
Cancel
Save