aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-09 08:22:55 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-09 08:22:55 +0000
commitc97178ec96c75420e3c714b4c15fa8744cae8a20 (patch)
treef7e3846b34cb6b64a539f328781022317f370fab
parent4d73a7ef35fbcb0c17ee8744603464c1b103e8fa (diff)
downloadnewlib-unlabeled-1.38.4.zip
newlib-unlabeled-1.38.4.tar.gz
newlib-unlabeled-1.38.4.tar.bz2
-rw-r--r--winsup/cygwin/fhandler_serial.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index b2d4c75..7c559d7 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -591,6 +591,9 @@ fhandler_serial::tcsetattr (int action, const struct termios *t)
case B115200:
state.BaudRate = CBR_115200;
break;
+ case B230400:
+ state.BaudRate = 230400 /* CBR_230400 - not defined */;
+ break;
default:
/* Unsupported baud rate! */
termios_printf ("Invalid t->c_ospeed %d", t->c_ospeed);
@@ -722,7 +725,6 @@ fhandler_serial::tcsetattr (int action, const struct termios *t)
state.fAbortOnError = TRUE;
- /* -------------- Set state and exit ------------------ */
if (memcmp (&ostate, &state, sizeof (state)) != 0)
SetCommState (get_handle (), &state);
@@ -891,6 +893,9 @@ fhandler_serial::tcgetattr (struct termios *t)
case CBR_115200:
t->c_cflag = t->c_ospeed = t->c_ispeed = B115200;
break;
+ case 230400: /* CBR_230400 - not defined */
+ t->c_cflag = t->c_ospeed = t->c_ispeed = B230400;
+ break;
default:
/* Unsupported baud rate! */
termios_printf ("Invalid baud rate %d", state.BaudRate);