projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c45b423
)
stty: use TAB0, TAB1, and TAB2 only if defined
author
Petr Salinger
<Petr.Salinger@seznam.cz>
Sat, 5 Sep 2009 09:15:29 +0000
(11:15 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Sat, 5 Sep 2009 13:54:26 +0000
(15:54 +0200)
* 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.
src/stty.c
patch
|
blob
|
history
diff --git
a/src/stty.c
b/src/stty.c
index 37aee280348a073aedcc7046b1733755b9f01c98..b980e8482f14e0e15a6af14b893ea67def58e4e3 100644
(file)
--- a/
src/stty.c
+++ b/
src/stty.c
@@
-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},