summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/tty.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index c5f670f3d3c..6ef0b3243b0 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -127,8 +127,13 @@ const char ttyout[] = "ttyout";
* 2) It's a locally attached terminal, and we are therefore ignoring carrier.
* 3) We're using a flow control mechanism that overloads the carrier signal.
*/
+#ifndef LOCKDOC
#define CONNECTED(tp) (ISSET(tp->t_state, TS_CARR_ON) || \
ISSET(tp->t_cflag, CLOCAL | MDMBUF))
+#else
+/* Circumvent Bochs' interesting com* implementation */
+#define CONNECTED(tp) true
+#endif
/*
* Table with character classes and parity. The 8th bit indicates parity,