21 lines
483 B
Text
21 lines
483 B
Text
Index: Programs/serial.c
|
|
--- Programs/serial.c.orig
|
|
+++ Programs/serial.c
|
|
@@ -192,6 +192,17 @@ serialInitializeAttributes (struct termios *attributes
|
|
#ifdef IEXTEN
|
|
attributes->c_lflag = IEXTEN;
|
|
#endif /* IEXTEN */
|
|
+
|
|
+#ifdef _POSIX_VDISABLE
|
|
+ if (_POSIX_VDISABLE) {
|
|
+ int i;
|
|
+ for (i=0; i<NCCS; ++i) {
|
|
+ if (i == VTIME) continue;
|
|
+ if (i == VMIN) continue;
|
|
+ attributes->c_cc[i] = _POSIX_VDISABLE;
|
|
+ }
|
|
+ }
|
|
+#endif /* _POSIX_VDISABLE */
|
|
}
|
|
|
|
static int
|