From a55123824975497c545c796bf447f1fd52d73474 Mon Sep 17 00:00:00 2001 From: Geoff Clare Date: Sun, 24 Jan 1999 19:03:27 +0000 Subject: [PATCH] The B57600 and B115200 symbols are not defined in Unixware. --- misc/comm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/comm.c b/misc/comm.c index 77b784268d8..f28c4157619 100644 --- a/misc/comm.c +++ b/misc/comm.c @@ -1048,12 +1048,16 @@ INT16 WINAPI SetCommState16(LPDCB16 lpdcb) case CBR_38400: port.c_cflag |= B38400; break; +#ifdef B57600 case 57600: port.c_cflag |= B57600; break; +#endif +#ifdef B115200 case 57601: port.c_cflag |= B115200; break; +#endif default: commerror = IE_BAUDRATE; return -1; @@ -1436,12 +1440,16 @@ INT16 WINAPI GetCommState16(INT16 fd, LPDCB16 lpdcb) case B38400: lpdcb->BaudRate = 38400; break; +#ifdef B57600 case B57600: lpdcb->BaudRate = 57600; break; +#endif +#ifdef B115200 case B115200: lpdcb->BaudRate = 57601; break; +#endif } #endif switch (port.c_cflag & CSIZE) {