PATCH: serial speeds

Marcus Meissner marcus at jet.franken.de
Sat Apr 20 15:40:17 CDT 2002


Hi,

Ciao, Marcus

License: LGPL
Changelog:
	wine at gc2.kloepfer.org
	Faster serial speed cases for non Linux systems. 
	(Fixes winehq bug #593)

Index: comm.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/comm.c,v
retrieving revision 1.55
diff -u -r1.55 comm.c
--- comm.c	14 Apr 2002 19:34:57 -0000	1.55
+++ comm.c	20 Apr 2002 21:47:02 -0000
@@ -1046,6 +1046,30 @@
                 case CBR_38400:
                         port.c_ospeed = B38400;
                         break;
+#ifdef B57600
+		case 57600:
+		case CBR_57600:
+			port.c_cflag |= B57600;
+			break;		
+#endif
+#ifdef B115200
+		case 115200:
+		case CBR_115200:
+			port.c_cflag |= B115200;
+			break;		
+#endif
+#ifdef B230400
+		case 230400:
+		case CBR_230400:
+			port.c_cflag |= B230400;
+			break;		
+#endif
+#ifdef B460800
+		case 460800:
+		case CBR_460800:
+			port.c_cflag |= B460800;
+			break;		
+#endif
                 default:
                         COMM_SetCommError(handle,IE_BAUDRATE);
                         close( fd );



More information about the wine-patches mailing list