X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fgetopt.h;h=c1d0df928f749ac0f3094b80f2422abce23b2dfa;hb=52d4444f8eec1a4e7e0861859c705c3a558b4e2a;hp=0de05aefbd0b92668e82a8605426f7918b574135;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/getopt.h b/include/getopt.h index 0de05aef..c1d0df92 100644 --- a/include/getopt.h +++ b/include/getopt.h @@ -7,9 +7,8 @@ extern "C" { 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 { const char *name; @@ -24,7 +23,6 @@ int getopt_long_only(int, char *const *, const char *, const struct option *, in #define no_argument 0 #define required_argument 1 #define optional_argument 2 -#endif #ifdef __cplusplus }