SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
misc/brltty/patches/patch-Programs_serial_c
Normal file
21
misc/brltty/patches/patch-Programs_serial_c
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue