[ofw] RE: OpenSM patches for saquery porting - 2 of 6 patches.
Sean Hefty
sean.hefty at intel.com
Fri Jan 30 15:07:48 PST 2009
>+
>+#ifndef _GETOPT_H_
> /* Global variables for getopt_long */
> char *optarg;
> /*
>@@ -36,6 +38,7 @@
> int *flag;
> int val;
> };
>+#endif
>
>
> /************************************************************************/
>@@ -43,11 +46,14 @@
> get_char_option(const char* optstring,
> char*const* argv,int argc,
> int iArg, int* opt_ind,char* opt_p);
>+
> int
> getopt_long_only(int argc, char *const*argv,
> const char *optstring,
> const struct option *longopts, int *longindex);
> /**************************************************************************/
The duplicate implementation of getopt should just be removed, with the code
using the common one provided by etc\user\getopt.c and inc\user\getopt.h.
More information about the ofw
mailing list