#endif
#ifdef HAVE_CONFIG_H
-# include <config.h>
+//# include <config.h>
#endif
#if !defined __STDC__ || !__STDC__
Also, when `ordering' is RETURN_IN_ORDER,
each non-option ARGV-element is returned here. */
+#if ! defined(HAVE_GETOPT) && ! defined(HAVE_GETOPT_LONG)
char *optarg;
+#endif
/* Index in ARGV of the next element to be scanned.
This is used for communication to and from the caller
how much of ARGV has been scanned so far. */
/* 1003.2 says this must be 1 before any call. */
+#if ! defined(HAVE_GETOPT) && ! defined(HAVE_GETOPT_LONG)
int optind = 1;
+#endif
/* Formerly, initialization of getopt depended on optind==0, which
causes problems with re-calling getopt as programs generally don't
know that. */
+#if ! defined(HAVE_GETOPT) && ! defined(HAVE_GETOPT_LONG)
int __getopt_initialized;
+#else
+extern int __getopt_initialized;
+#endif
/* The next char to be scanned in the option-element
in which the last option character we returned was found.
/* Callers store zero here to inhibit the error message
for unrecognized options. */
+#if ! defined(HAVE_GETOPT) && ! defined(HAVE_GETOPT_LONG)
int opterr = 1;
+#endif
/* Set to an option character which was unrecognized.
This must be initialized on some systems to avoid linking in the
system's own getopt implementation. */
+#if ! defined(HAVE_GETOPT) && ! defined(HAVE_GETOPT_LONG)
int optopt = '?';
+#endif
/* Describe how to deal with options that follow non-option ARGV-elements.
}
}
+#ifndef HAVE_GETOPT
int
getopt (argc, argv, optstring)
int argc;
(int *) 0,
0);
}
+#endif
#endif /* Not ELIDE_CODE. */
\f