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 /win32/termios.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 'win32/termios.c')
-rw-r--r-- | win32/termios.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/win32/termios.c b/win32/termios.c index a1329ceba..7115bc0da 100644 --- a/win32/termios.c +++ b/win32/termios.c | |||
@@ -1,15 +1,5 @@ | |||
1 | #include "libbb.h" | 1 | #include "libbb.h" |
2 | 2 | ||
3 | int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM) | ||
4 | { | ||
5 | return -1; | ||
6 | } | ||
7 | |||
8 | int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM) | ||
9 | { | ||
10 | return -1; | ||
11 | } | ||
12 | |||
13 | int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) | 3 | int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) |
14 | { | 4 | { |
15 | HANDLE cin = GetStdHandle(STD_INPUT_HANDLE); | 5 | HANDLE cin = GetStdHandle(STD_INPUT_HANDLE); |