blob: 7fed5b1183867691c6260496d292ee5c81ca3259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
@@ -44,7 +44,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)
|