diff --git a/apps/bim.c b/apps/bim.c index 5411d8be..24d426ca 100644 --- a/apps/bim.c +++ b/apps/bim.c @@ -48,16 +48,11 @@ #include #include #include +#include #include #include #include -#ifdef __toaru__ -#include -#else -#include -#endif - #define BLOCK_SIZE 4096 #define ENTER_KEY '\n' #define BACKSPACE_KEY 0x08 @@ -225,17 +220,6 @@ int bim_getch(void) { _bim_unget = -1; return out; } -#ifdef __toaru__ - int fds[] = {global_config.tty_in}; - int index = fswait2(1,fds,200); - if (index == 0) { - unsigned char buf[1]; - read(global_config.tty_in, buf, 1); - return buf[0]; - } else { - return -1; - } -#else struct pollfd fds[1]; fds[0].fd = global_config.tty_in; fds[0].events = POLLIN; @@ -247,7 +231,6 @@ int bim_getch(void) { } else { return -1; } -#endif } #define HISTORY_SENTINEL 0