aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-03 10:28:25 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-03 10:28:25 +0000
commitb79712ca9af16dda5e55bdace73c028345f923d1 (patch)
treec87ae9361e5982a24c6ac29df0ec5e5e228e9e47 /shell
parent6a395904343d959e24a4c0420b572c450d5a0d8c (diff)
downloadbusybox-w32-b79712ca9af16dda5e55bdace73c028345f923d1.tar.gz
busybox-w32-b79712ca9af16dda5e55bdace73c028345f923d1.tar.bz2
busybox-w32-b79712ca9af16dda5e55bdace73c028345f923d1.zip
2006-06-02 Shaun Jackman <sjackman@gmail.com>
* shell/lash.c (pseudo_exec) [_NEWLIB_VERSION]: Remove the __getopt_initialized hackery. git-svn-id: svn://busybox.net/trunk/busybox@15270 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-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);