[C-style comments] PR 16828 dlls/ntdll/serial.c clear IEXTEN when clearing ICANON

G. Paul Ziemba p-wine-bugs at ziemba.us
Tue Jan 6 13:40:09 CST 2009


FreeBSD fix for Nirvis CDJ application, PR 16828


--- dlls/ntdll/serial.c.orig	2008-12-20 06:55:38.000000000 -0800
+++ dlls/ntdll/serial.c	2009-01-05 21:35:47.000000000 -0800
@@ -648,7 +648,11 @@
     port.c_cflag &= ~(HUPCL);
     port.c_cflag |= CLOCAL | CREAD;
     
-    port.c_lflag &= ~(ICANON|ECHO|ISIG);
+    /*
+     * on FreeBSD, turning off ICANON does not disable IEXTEN,
+     * so we must turn it off explicitly. No harm done on Linux.
+     */
+    port.c_lflag &= ~(ICANON|ECHO|ISIG|IEXTEN);
     port.c_lflag |= NOFLSH;
     
     bytesize = slc->WordLength;

-- 
G. Paul Ziemba
FreeBSD unix:
11:36AM  up 12 days, 22:15, 12 users, load averages: 0.30, 0.57, 0.45



More information about the wine-patches mailing list