stty: sort out preprocessor conditionals

* Move the definitions of missing constants to the top of the file.
* Fix undefined IDX_xxx on missing termios constants.
* FreeBSD has TABDLY, TAB0 and TAB3, but no TAB1 or TAB2
* Omit the definition of set_window_size() if TIOCGWINSZ is not available.

Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Jeremie Koenig
2010-07-30 06:01:37 +02:00
committed by Denys Vlasenko
parent 63c2e7ecc0
commit 138ce54c9c
2 changed files with 214 additions and 126 deletions

View File

@@ -607,7 +607,6 @@ config FEATURE_STAT_FORMAT
config STTY
bool "stty"
default y
depends on PLATFORM_LINUX
help
stty is used to change and print terminal line settings.