aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/shell_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 4c870fab8..2244a3c97 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -190,6 +190,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val),
190 * regardless of SA_RESTART-ness of that signal! 190 * regardless of SA_RESTART-ness of that signal!
191 */ 191 */
192 errno = 0; 192 errno = 0;
193#if !ENABLE_PLATFORM_MINGW32
193 pfd[0].fd = fd; 194 pfd[0].fd = fd;
194 pfd[0].events = POLLIN; 195 pfd[0].events = POLLIN;
195 if (poll(pfd, 1, timeout) != 1) { 196 if (poll(pfd, 1, timeout) != 1) {
@@ -198,6 +199,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val),
198 retval = (const char *)(uintptr_t)1; 199 retval = (const char *)(uintptr_t)1;
199 goto ret; 200 goto ret;
200 } 201 }
202#endif
201 if (read(fd, &buffer[bufpos], 1) != 1) { 203 if (read(fd, &buffer[bufpos], 1) != 1) {
202 err = errno; 204 err = errno;
203 retval = (const char *)(uintptr_t)1; 205 retval = (const char *)(uintptr_t)1;