]> granicus.if.org Git - fortune-mod/commitdiff
win32 porting
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 8 Jun 2019 17:03:01 +0000 (20:03 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 8 Jun 2019 17:03:01 +0000 (20:03 +0300)
fortune-mod/util/getopt.h

index 2412e5e89fc8ce03f9cbc37218fd1b0eabdd104a..ce450f4147b0fe714300b639dd2bde8ac7145135 100644 (file)
@@ -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 */