aboutsummaryrefslogtreecommitdiff
path: root/contrib/autotools-patches/0006-Fix-strict-ansi-vs-posix-mod.patch
blob: 61a1cc568581eab94b2b218cabaf201c65247dbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[PATCH 6/6] Fix STRICT_ANSI vs POSIX
* build-aux/ltmain.in (func_mode_link): Also check for _POSIX
as well as __STRICT_ANSI__ to avoid re-definitions.
---
 build-aux/ltmain.sh |    4 +++-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index af46cb8..244bb5b 100644
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -3382,7 +3382,7 @@
 
 /* declarations of non-ANSI functions */
 #if defined __MINGW32__
-# ifdef __STRICT_ANSI__
+# if defined(__STRICT_ANSI__) && !defined(__MINGW64_VERSION_MAJOR) || defined(_POSIX_)
 int _putenv (const char *);
 # endif
 #elif defined __CYGWIN__
-- 
1.7.0.2.msysgit.0