[kde-freebsd] KDE/kdelibs/kpty
Manolo Valdes
nolis71cu at gmail.com
Fri Sep 19 06:02:48 CEST 2008
SVN commit 862506 by mvaldes:
make konsole works property on FreeBSD
patch tooked from ports
CCMAIL:kde at freebsd.org
M +4 -0 kptydevice.cpp
--- trunk/KDE/kdelibs/kpty/kptydevice.cpp #862505:862506
@@ -265,7 +265,11 @@
#else
int available;
#endif
+#ifdef Q_OS_FREEBSD
+ if (!::ioctl(q->masterFd(), TIOCOUTQ, (char *) &available)) {
+#else
if (!::ioctl(q->masterFd(), FIONREAD, (char *) &available)) {
+#endif
char *ptr = readBuffer.reserve(available);
NO_INTR(readBytes, read(q->masterFd(), ptr, available));
if (readBytes < 0) {
More information about the kde-freebsd
mailing list