int getopt(int, char * const [], const char *);
extern char *optarg;
-extern int optind, opterr, optopt;
+extern int optind, opterr, optopt, optreset;
-#ifdef _GNU_SOURCE
-struct option
-{
+struct option {
const char *name;
int has_arg;
int *flag;
#define no_argument 0
#define required_argument 1
#define optional_argument 2
-#endif
#ifdef __cplusplus
}