2006-06-02 Shaun Jackman <sjackman@gmail.com>
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 3 Jun 2006 10:28:25 +0000 (10:28 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 3 Jun 2006 10:28:25 +0000 (10:28 -0000)
* shell/lash.c (pseudo_exec) [_NEWLIB_VERSION]: Remove the
__getopt_initialized hackery.

shell/lash.c

index 54408c97e0a7bd073b600889551b731ab55cb129..b8ec8c66b867f854fbabe4a1d830cb3b42f37742 100644 (file)
@@ -1268,12 +1268,7 @@ static int pseudo_exec(struct child_prog *child)
        {
                char** argv_l=child->argv;
                int argc_l;
-#ifdef _NEWLIB_VERSION
-               /* newlib uses __getopt_initialized for getopt() in
-                * addition to optind, see newlib/libc/sys/linux/getopt.c
-                */
-               extern int __getopt_initialized = 0;
-#endif
+
                for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++);
                optind = 1;
                run_applet_by_name(name, argc_l, child->argv);