diff options
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index 0ffe21e0b..f7503cac5 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -18,6 +18,9 @@ | |||
18 | */ | 18 | */ |
19 | #include "libbb.h" | 19 | #include "libbb.h" |
20 | #include "shell_common.h" | 20 | #include "shell_common.h" |
21 | #if !ENABLE_PLATFORM_MINGW32 | ||
22 | #include <sys/resource.h> /* getrlimit */ | ||
23 | #endif | ||
21 | 24 | ||
22 | const char defifsvar[] ALIGN1 = "IFS= \t\n"; | 25 | const char defifsvar[] ALIGN1 = "IFS= \t\n"; |
23 | 26 | ||
@@ -169,7 +172,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), | |||
169 | int timeout; | 172 | int timeout; |
170 | 173 | ||
171 | if ((bufpos & 0xff) == 0) | 174 | if ((bufpos & 0xff) == 0) |
172 | buffer = xrealloc(buffer, bufpos + 0x100); | 175 | buffer = xrealloc(buffer, bufpos + 0x101); |
173 | 176 | ||
174 | timeout = -1; | 177 | timeout = -1; |
175 | if (end_ms) { | 178 | if (end_ms) { |