X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=getopt%2Fgetopt.h;h=da0a54adc618e07f2abc19d0b7c79615e527c48e;hp=74a3a5820b37633697d28f27c818eb77fe6f6cfa;hb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac;hpb=98f57d3adc542bb7753434ce31c92a6680bd6244 diff --git a/getopt/getopt.h b/getopt/getopt.h index 74a3a58..da0a54a 100644 --- a/getopt/getopt.h +++ b/getopt/getopt.h @@ -19,8 +19,9 @@ #ifndef _GETOPT_H +#ifdef HAVE_CONFIG_H #include "../config.h" - +#endif #ifndef __need_getopt # define _GETOPT_H 1 @@ -155,15 +156,15 @@ extern int _getopt_internal (int __argc, char *const *__argv, #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt -extern int getopt_long (int argc, char *const *argv, const char *shortopts, - const struct option *longopts, int *longind); -extern int getopt_long_only (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind); -extern int _getopt_internal (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only); +extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind); +extern int getopt_long_only (int __argc, char *const *__argv, + const char *__shortopts, + const struct option *__longopts, int *__longind); +extern int _getopt_internal (int __argc, char *const *__argv, + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only); # endif #endif /* __STDC__ */