diff options
Diffstat (limited to 'winsup/cygwin/fhandler_serial.cc')
-rw-r--r-- | winsup/cygwin/fhandler_serial.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc index 0b6464178..67e11908f 100644 --- a/winsup/cygwin/fhandler_serial.cc +++ b/winsup/cygwin/fhandler_serial.cc @@ -272,7 +272,7 @@ fhandler_serial::open (path_conv *, int flags, mode_t mode) request TIOCMGET could return correct value of RTS and DTR lines. Important only for Win 9x systems */ - if (!wincap.is_winnt ()) + if (wincap.must_init_serial_line ()) { if (EscapeCommFunction (get_handle (), SETDTR) == 0) system_printf ("couldn't set initial state of DTR for %s, %E", get_name ()); @@ -409,7 +409,7 @@ fhandler_serial::ioctl (unsigned int cmd, void *buffer) modemStatus |= TIOCM_RI; if (modemLines & MS_RLSD_ON) modemStatus |= TIOCM_CD; - if (!wincap.is_winnt ()) + if (wincap.must_init_serial_line ()) modemStatus |= rts | dtr; else { |