summaryrefslogtreecommitdiff
path: root/external/glibc/glibc-2.1.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/glibc/glibc-2.1.3.patch')
-rw-r--r--external/glibc/glibc-2.1.3.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/external/glibc/glibc-2.1.3.patch b/external/glibc/glibc-2.1.3.patch
index bedaad06fac3..a9feeccc4f67 100644
--- a/external/glibc/glibc-2.1.3.patch
+++ b/external/glibc/glibc-2.1.3.patch
@@ -27,3 +27,37 @@
const char *__shortopts,
const struct option *__longopts, int *__longind,
int __long_only);
+--- misc/glibc-2.1.3/posix/getopt1.c
++++ misc/build/glibc-2.1.3/posix/getopt1.c
+@@ -62,6 +62,13 @@
+ #ifndef NULL
+ #define NULL 0
+ #endif
++
++#ifdef _MSC_VER
++// C4100: unreferenced formal parameter
++#pragma warning (disable: 4100)
++// C4131: uses old-style declarator
++#pragma warning (disable: 4131)
++#endif
+
+ int
+ getopt_long (argc, argv, options, long_options, opt_index)
+
+--- misc/glibc-2.1.3/posix/getopt.c
++++ misc/build/glibc-2.1.3/posix/getopt.c
+@@ -86,6 +86,13 @@
+ # define _(msgid) (msgid)
+ # endif
+ #endif
++
++#ifdef _MSC_VER
++// C4100: unreferenced formal parameter
++#pragma warning (disable: 4100)
++// C4131: uses old-style declarator
++#pragma warning (disable: 4131)
++#endif
+
+ /* This version of `getopt' appears to the caller like standard Unix `getopt'
+ but it behaves differently for the user, since it allows the user
+