The B57600 and B115200 symbols are not defined in Unixware.

This commit is contained in:
Geoff Clare 1999-01-24 19:03:27 +00:00 committed by Alexandre Julliard
parent 762f18d664
commit a551238249
1 changed files with 8 additions and 0 deletions

View File

@ -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) {