aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/Kbuild.src2
-rw-r--r--libbb/read_key.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/libbb/Kbuild.src b/libbb/Kbuild.src
index 191984c9d..425bfe1c6 100644
--- a/libbb/Kbuild.src
+++ b/libbb/Kbuild.src
@@ -64,6 +64,7 @@ lib-y += process_escape_sequence.o
64lib-y += procps.o 64lib-y += procps.o
65lib-y += ptr_to_globals.o 65lib-y += ptr_to_globals.o
66lib-y += read.o 66lib-y += read.o
67lib-y += read_key.o
67lib-y += read_printf.o 68lib-y += read_printf.o
68lib-y += recursive_action.o 69lib-y += recursive_action.o
69lib-y += remove_file.o 70lib-y += remove_file.o
@@ -114,7 +115,6 @@ lib-$(CONFIG_PLATFORM_POSIX) += perror_nomsg.o
114lib-$(CONFIG_PLATFORM_POSIX) += pidfile.o 115lib-$(CONFIG_PLATFORM_POSIX) += pidfile.o
115lib-$(CONFIG_PLATFORM_POSIX) += print_flags.o 116lib-$(CONFIG_PLATFORM_POSIX) += print_flags.o
116lib-$(CONFIG_PLATFORM_POSIX) += progress.o 117lib-$(CONFIG_PLATFORM_POSIX) += progress.o
117lib-$(CONFIG_PLATFORM_POSIX) += read_key.o
118lib-$(CONFIG_PLATFORM_POSIX) += setup_environment.o 118lib-$(CONFIG_PLATFORM_POSIX) += setup_environment.o
119lib-$(CONFIG_PLATFORM_POSIX) += signals.o 119lib-$(CONFIG_PLATFORM_POSIX) += signals.o
120lib-$(CONFIG_PLATFORM_POSIX) += speed_table.o 120lib-$(CONFIG_PLATFORM_POSIX) += speed_table.o
diff --git a/libbb/read_key.c b/libbb/read_key.c
index cf8ed411e..c34770028 100644
--- a/libbb/read_key.c
+++ b/libbb/read_key.c
@@ -9,7 +9,11 @@
9 */ 9 */
10#include "libbb.h" 10#include "libbb.h"
11 11
12#if ENABLE_PLATFORM_MINGW32
13int64_t FAST_FUNC unix_read_key(int fd, char *buffer, int timeout)
14#else
12int64_t FAST_FUNC read_key(int fd, char *buffer, int timeout) 15int64_t FAST_FUNC read_key(int fd, char *buffer, int timeout)
16#endif
13{ 17{
14 struct pollfd pfd; 18 struct pollfd pfd;
15 const char *seq; 19 const char *seq;