aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/shell_common.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 52e1025a2..4c870fab8 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -277,6 +277,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val),
277 277
278/* ulimit builtin */ 278/* ulimit builtin */
279 279
280#if !ENABLE_PLATFORM_MINGW32
280struct limits { 281struct limits {
281 uint8_t cmd; /* RLIMIT_xxx fit into it */ 282 uint8_t cmd; /* RLIMIT_xxx fit into it */
282 uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */ 283 uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */
@@ -374,13 +375,6 @@ static const char ulimit_opt_string[] = "-HSa"
374#endif 375#endif
375 ; 376 ;
376 377
377#if ENABLE_PLATFORM_MINGW32
378int FAST_FUNC
379shell_builtin_ulimit(char **argv)
380{
381 return 1;
382}
383#else
384static void printlim(unsigned opts, const struct rlimit *limit, 378static void printlim(unsigned opts, const struct rlimit *limit,
385 const struct limits *l) 379 const struct limits *l)
386{ 380{
@@ -509,4 +503,9 @@ shell_builtin_ulimit(char **argv)
509 503
510 return 0; 504 return 0;
511} 505}
506#else
507int FAST_FUNC shell_builtin_ulimit(char **argv UNUSED_PARAM)
508{
509 return 1;
510}
512#endif 511#endif