make arch __set_thread_area backends hidden
[oweals/musl.git] / include / getopt.h
index 0de05aefbd0b92668e82a8605426f7918b574135..35cbd358b52855fb1596da7970c84c18dd0f1cdb 100644 (file)
@@ -7,11 +7,9 @@ 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
-{
+struct option {
        const char *name;
        int has_arg;
        int *flag;
@@ -24,7 +22,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
 }