ports/sysutils/coreutils/files/extra-patch-stty.c
Jeremy Chadwick 0f313cf5f3 Fixup for my previous commit/patch.
- OSVERSION check should be against 800039 or higher, as that's when
  the sgtty changes were committed.
  http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h.diff?r1=1.355;r2=1.356;f=h

- Fix stty.c patch.  Previous version would result in termios bits
  being overridden by #include <sys/ioctl_compat.h>, causing coreutils'
  stty to modify bits different than /bin/stty.  This version removes
  tab1/tab2 delay support, since tab1/tab2 delays aren't available in HEAD
  outside of the binary compatibility interface.  Also fixes stty --help
  usage to indicate only tab0 and tab3 are available.
2008-08-29 02:36:25 +00:00

20 lines
757 B
C

--- src/stty.c.orig 2007-03-18 14:36:43.000000000 -0700
+++ src/stty.c 2008-08-28 18:54:40.000000000 -0700
@@ -282,8 +282,6 @@
#endif
#ifdef TABDLY
{"tab3", output, SANE_UNSET, TAB3, TABDLY},
- {"tab2", output, SANE_UNSET, TAB2, TABDLY},
- {"tab1", output, SANE_UNSET, TAB1, TABDLY},
{"tab0", output, SANE_SET, TAB0, TABDLY},
#else
# ifdef OXTABS
@@ -632,7 +630,7 @@
fputs (_("\
* [-]onocr do not print carriage returns in the first column\n\
[-]opost postprocess output\n\
- * tabN horizontal tab delay style, N in [0..3]\n\
+ * tabN horizontal tab delay style, N in [0,3]\n\
* tabs same as tab0\n\
* -tabs same as tab3\n\
* vtN vertical tab delay style, N in [0..1]\n\