1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/lang/tcl84/files/patch-tclUnixChan.c
Dirk Meyer 4af71e33b7 - support mode on /dev/cuaa*
Submitted by:	John Hay
2004-06-30 13:17:09 +00:00

13 lines
382 B
C

--- tclUnixChan.c.org Wed Feb 25 16:54:52 2004
+++ tclUnixChan.c Mon Jun 28 13:57:18 2004
@@ -1787,7 +1787,8 @@
}
fd = TclOSopen(native, mode, permissions);
#ifdef SUPPORTS_TTY
- ctl_tty = (strcmp (native, "/dev/tty") == 0);
+ ctl_tty = (strcmp (native, "/dev/tty") == 0) ||
+ (strcmp (native, "/dev/cua") == 0);
#endif /* SUPPORTS_TTY */
if (fd < 0) {