diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-05 20:31:13 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-05 20:31:13 +0100 |
commit | f7c592f6d832602a628008d598a3aa130d89de4d (patch) | |
tree | 5b771c3f51bfb51e52f3736f89f7b4b195e13f82 /libbb/xfuncs.c | |
parent | 3f18c23c67ea8614f1901265d100d3e49bc7491e (diff) | |
download | busybox-w32-f7c592f6d832602a628008d598a3aa130d89de4d.tar.gz busybox-w32-f7c592f6d832602a628008d598a3aa130d89de4d.tar.bz2 busybox-w32-f7c592f6d832602a628008d598a3aa130d89de4d.zip |
win32: exclude termios code
The code to manipulate terminal settings serves no purpose in WIN32.
Use conditional compilation to exclude much of it.
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index f2112aec9..6fa21ad00 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -305,6 +305,7 @@ int FAST_FUNC get_terminal_width(int fd) | |||
305 | return width; | 305 | return width; |
306 | } | 306 | } |
307 | 307 | ||
308 | #if !ENABLE_PLATFORM_MINGW32 | ||
308 | int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) | 309 | int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) |
309 | { | 310 | { |
310 | return tcsetattr(STDIN_FILENO, TCSANOW, tp); | 311 | return tcsetattr(STDIN_FILENO, TCSANOW, tp); |
@@ -380,6 +381,7 @@ int FAST_FUNC set_termios_to_raw(int fd, struct termios *oldterm, int flags) | |||
380 | get_termios_and_make_raw(fd, &newterm, oldterm, flags); | 381 | get_termios_and_make_raw(fd, &newterm, oldterm, flags); |
381 | return tcsetattr(fd, TCSANOW, &newterm); | 382 | return tcsetattr(fd, TCSANOW, &newterm); |
382 | } | 383 | } |
384 | #endif | ||
383 | 385 | ||
384 | pid_t FAST_FUNC safe_waitpid(pid_t pid, int *wstat, int options) | 386 | pid_t FAST_FUNC safe_waitpid(pid_t pid, int *wstat, int options) |
385 | { | 387 | { |