mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
stty: use TAB0, TAB1, and TAB2 only if defined
* src/stty.c (mode_info) [TAB0, TAB1, TAB2]: Guard each entry with #ifdef. Required for GNU/kFreeBSD. Reported by Petr Salinger in http://bugs.debian.org/520368.
This commit is contained in:
1 parent
c45b4237bc
commit
305bbd99b2
1 file changed
+8
@@ -279,10 +279,18 @@ static struct mode_info const mode_info[] =
|
||||
{"cr0", output, SANE_SET, CR0, CRDLY},
|
||||
#endif
|
||||
#ifdef TABDLY
|
||||
#ifdef TAB3
|
||||
{"tab3", output, SANE_UNSET, TAB3, TABDLY},
|
||||
#endif
|
||||
#ifdef TAB2
|
||||
{"tab2", output, SANE_UNSET, TAB2, TABDLY},
|
||||
#endif
|
||||
#ifdef TAB1
|
||||
{"tab1", output, SANE_UNSET, TAB1, TABDLY},
|
||||
#endif
|
||||
#ifdef TAB0
|
||||
{"tab0", output, SANE_SET, TAB0, TABDLY},
|
||||
#endif
|
||||
#else
|
||||
# ifdef OXTABS
|
||||
{"tab3", output, SANE_UNSET, OXTABS, 0},
|
||||
|
||||
Reference in new issue
Block a user