#include <errno.h>
-#include "getopt.h"
+#include "getopt_long.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
char *optarg;
-int optind, opterr, optopt;
+int optind, opterr = 1, optopt;
static int getopt_internal(int, char * const *, const char *,
const struct option *, int *, int);