aboutsummaryrefslogtreecommitdiff
path: root/contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch')
-rw-r--r--contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch b/contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch
new file mode 100644
index 00000000..61a1cc56
--- /dev/null
+++ b/contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch
@@ -0,0 +1,22 @@
1[PATCH 6/6] Fix STRICT_ANSI vs POSIX
2* build-aux/ltmain.in (func_mode_link): Also check for _POSIX
3as well as __STRICT_ANSI__ to avoid re-definitions.
4---
5 build-aux/ltmain.sh | 4 +++-
6 1 files changed, 1 insertions(+), 1 deletions(-)
7
8diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
9index af46cb8..244bb5b 100644
10--- a/build-aux/ltmain.sh
11+++ b/build-aux/ltmain.sh
12@@ -3382,7 +3382,7 @@
13
14 /* declarations of non-ANSI functions */
15 #if defined __MINGW32__
16-# ifdef __STRICT_ANSI__
17+# if defined(__STRICT_ANSI__) && !defined(__MINGW64_VERSION_MAJOR) || defined(_POSIX_)
18 int _putenv (const char *);
19 # endif
20 #elif defined __CYGWIN__
21--
221.7.0.2.msysgit.0