From f7c592f6d832602a628008d598a3aa130d89de4d Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 5 Apr 2018 20:31:13 +0100 Subject: win32: exclude termios code The code to manipulate terminal settings serves no purpose in WIN32. Use conditional compilation to exclude much of it. --- win32/termios.c | 10 ---------- win32/termios.h | 4 ---- 2 files changed, 14 deletions(-) (limited to 'win32') 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 @@ #include "libbb.h" -int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM) -{ - return -1; -} - -int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM) -{ - return -1; -} - int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) { HANDLE cin = GetStdHandle(STD_INPUT_HANDLE); diff --git a/win32/termios.h b/win32/termios.h index 011a37eb9..c98d414f3 100644 --- a/win32/termios.h +++ b/win32/termios.h @@ -123,7 +123,3 @@ struct winsize { unsigned short ws_row, ws_col; unsigned short ws_xpixel, ws_ypixel; }; - -int tcflush(int fd, int queue_selector); -int tcgetattr(int fd, struct termios *t); -int tcsetattr(int fd, int mode, const struct termios *t); -- cgit v1.2.3-55-g6feb