kde4libs (4:4.4.5-2+squeeze3) 27_konsole_kfreebsd_fix.diff

Summary

 kpty/kptydevice.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

This patch makes konsole work on kfreebsd.
Without it, konsole doesn't display anything in the terminal area.
Inspired from http://lists.kde.org/?l=kde-commits&m=122713720905453&w=2
--- a/kpty/kptydevice.cpp
+++ b/kpty/kptydevice.cpp
@@ -42,7 +42,7 @@
 # include <sys/time.h>
 #endif
 
-#if defined(Q_OS_FREEBSD) || defined(Q_OS_MAC)
+#if defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) || defined(__FreeBSD_kernel__)
   // "the other end's output queue size" - kinda braindead, huh?
 # define PTY_BYTES_AVAILABLE TIOCOUTQ
 #elif defined(TIOCINQ)