patch-Programs_serial_c 580 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-Programs_serial_c,v 1.2 2010/05/20 09:25:31 espie Exp $
  2. --- Programs/serial.c.orig Thu Sep 30 15:13:52 2004
  3. +++ Programs/serial.c Wed May 19 19:16:40 2010
  4. @@ -192,6 +192,17 @@ serialInitializeAttributes (struct termios *attributes
  5. #ifdef IEXTEN
  6. attributes->c_lflag = IEXTEN;
  7. #endif /* IEXTEN */
  8. +
  9. +#ifdef _POSIX_VDISABLE
  10. + if (_POSIX_VDISABLE) {
  11. + int i;
  12. + for (i=0; i<NCCS; ++i) {
  13. + if (i == VTIME) continue;
  14. + if (i == VMIN) continue;
  15. + attributes->c_cc[i] = _POSIX_VDISABLE;
  16. + }
  17. + }
  18. +#endif /* _POSIX_VDISABLE */
  19. }
  20. static int