summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {