SVN commit 886761 by mkruisselbrink: I don't really understand this code, but osx is more freebsd like than linux like; the freebsd branch of this code also makes konsole work on mac osx. M +1 -1 kptydevice.cpp --- trunk/KDE/kdelibs/kpty/kptydevice.cpp #886760:886761 @@ -265,7 +265,7 @@ #else int available; #endif -#ifdef Q_OS_FREEBSD +#if defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) if (!::ioctl(q->masterFd(), TIOCOUTQ, (char *) &available)) { #else if (!::ioctl(q->masterFd(), FIONREAD, (char *) &available)) {