diff options
Diffstat (limited to 'tdecore/kpty.cpp')
-rw-r--r-- | tdecore/kpty.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tdecore/kpty.cpp b/tdecore/kpty.cpp index 6e279748b..f832cd97e 100644 --- a/tdecore/kpty.cpp +++ b/tdecore/kpty.cpp @@ -329,7 +329,11 @@ bool KPty::open() // We try, as we know them, one by one. #if defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT) -#ifdef _AIX +#if defined(HAVE_GETPT) + d->masterFd = ::getpt(); +#elif defined(HAVE_POSIX_OPENPT) + d->masterFd = ::posix_openpt(O_RDWR); +#elif defined(_AIX) d->masterFd = ::open("/dev/ptc",O_RDWR); #else d->masterFd = ::open("/dev/ptmx",O_RDWR); |