diff --git a/qmltermwidget/lib/kpty.cpp b/qmltermwidget/lib/kpty.cpp index fe901dc..d758a94 100644 --- a/qmltermwidget/lib/kpty.cpp +++ b/qmltermwidget/lib/kpty.cpp @@ -331,7 +331,12 @@ gotpty: !d->chownpty(true)) { qWarning() << "chownpty failed for device " << ptyName << "::" << d->ttyName - << "\nThis means the communication can be eavesdropped." << Qt::endl; + << "\nThis means the communication can be eavesdropped." +#if QT_VERSION >= 0x050e00 + << Qt::endl; +#else + << endl; +#endif } #if defined (HAVE__GETPTY) || defined (HAVE_GRANTPT)