Skip to content
Snippets Groups Projects
Commit 2b5151af authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

getopt_long_quiet: fix for Linux environment

parent 2f3bbb0d
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ int testable_cmp_tool_main(int argc, char **argv)
model_id = DEFAULT_MODEL_ID;
model_counter = 0;
optreset = 1;
optind = 0;
return CMP_MAIN(argc, argv);
}
#else
......
......@@ -49,7 +49,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <err.h>
/* include <err.h> */
__extension__
#define warnx(format, ...) (void)0
#include <errno.h>
#include <getopt.h>
#include <stdlib.h>
......@@ -57,7 +59,7 @@
#define GNU_COMPATIBLE /* Be more compatible, configure's use us! */
#if 0 /* we prefer to keep our getopt(3) */
#if 1
#define REPLACE_GETOPT /* use this getopt as the system getopt(3) */
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment