1 #include "../src/config.h"
2
3 #ifndef HAVE_GETOPT_H
4
5 # ifndef MY_GETOPT_H
6 # define MY_GETOPT_H
7
8 # ifdef GETOPT_C
9 # define GETOPT_EXTERN
10 # else
11 # define GETOPT_EXTERN extern
12 # endif
13
14 GETOPT_EXTERN
15 int opterr, /* if error message should be printed */
16 optind, /* index into parent argv vector */
17 optopt, /* character checked for validity */
18 optreset; /* reset getopt */
19 GETOPT_EXTERN char *optarg; /* argument associated with option */
20
21 int getopt (int nargc, char *const nargv[], const char *ostr);
22 # endif
23
24 #else
25 # include <getopt.h>
26 #endif