add getopt reset support
[musl] / include / getopt.h
index 6d85c0b..c1d0df9 100644 (file)
@@ -7,7 +7,7 @@ extern "C" {
 
 int getopt(int, char * const [], const char *);
 extern char *optarg;
-extern int optind, opterr, optopt;
+extern int optind, opterr, optopt, optreset;
 
 struct option
 {