From be22fd6e6de4d68439ee8775083c93aa66290f8f Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 8 Jun 2019 20:03:01 +0300 Subject: [PATCH] win32 porting --- fortune-mod/util/getopt.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fortune-mod/util/getopt.h b/fortune-mod/util/getopt.h index 2412e5e..ce450f4 100644 --- a/fortune-mod/util/getopt.h +++ b/fortune-mod/util/getopt.h @@ -5,6 +5,11 @@ #ifndef GETOPT_H #define GETOPT_H +extern int opterr, /* if error message should be printed */ + optind, /* index into parent argv vector */ + optopt, /* character checked for validity */ + optreset; /* reset getopt */ +extern char *optarg; /* argument associated with option */ int getopt(int nargc, char * const nargv[], const char *ostr) ; #endif /* !GETOPT_H */ -- 2.40.0