File metis-mingw.patch of Package mingw64-metis

diff --git a/GKlib/gk_arch.h b/GKlib/gk_arch.h
index 2cb80cc..be309e4 100644
--- a/GKlib/gk_arch.h
+++ b/GKlib/gk_arch.h
@@ -41,7 +41,9 @@
 #endif
   #include <inttypes.h>
   #include <sys/types.h>
+#ifndef __MINGW32__
   #include <sys/resource.h>
+#endif
   #include <sys/time.h>
 #endif
 
diff --git a/GKlib/gk_getopt.h b/GKlib/gk_getopt.h
index 4bb8611..6a5a0c7 100644
--- a/GKlib/gk_getopt.h
+++ b/GKlib/gk_getopt.h
@@ -52,10 +52,10 @@ struct gk_option {
 
 
 /* Function prototypes */
-extern int gk_getopt(int __argc, char **__argv, char *__shortopts);
-extern int gk_getopt_long(int __argc, char **__argv, char *__shortopts,
+extern int gk_getopt(int argc, char **argv, char *__shortopts);
+extern int gk_getopt_long(int argc, char **argv, char *__shortopts,
               struct gk_option *__longopts, int *__longind);
-extern int gk_getopt_long_only (int __argc, char **__argv,
+extern int gk_getopt_long_only (int argc, char **argv,
               char *__shortopts, struct gk_option *__longopts, int *__longind);
 
 
openSUSE Build Service is sponsored by