aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/lash.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 54408c97e..b8ec8c66b 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1268,12 +1268,7 @@ static int pseudo_exec(struct child_prog *child)
1268 { 1268 {
1269 char** argv_l=child->argv; 1269 char** argv_l=child->argv;
1270 int argc_l; 1270 int argc_l;
1271#ifdef _NEWLIB_VERSION 1271
1272 /* newlib uses __getopt_initialized for getopt() in
1273 * addition to optind, see newlib/libc/sys/linux/getopt.c
1274 */
1275 extern int __getopt_initialized = 0;
1276#endif
1277 for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++); 1272 for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++);
1278 optind = 1; 1273 optind = 1;
1279 run_applet_by_name(name, argc_l, child->argv); 1274 run_applet_by_name(name, argc_l, child->argv);