0006-Fix-strict-ansi-vs-posix.patch 665 B

12345678910111213141516171819202122
  1. [PATCH 6/6] Fix STRICT_ANSI vs POSIX
  2. * build-aux/ltmain.in (func_mode_link): Also check for _POSIX
  3. as well as __STRICT_ANSI__ to avoid re-definitions.
  4. ---
  5. build-aux/ltmain.in | 4 +++-
  6. 1 files changed, 1 insertions(+), 1 deletions(-)
  7. diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
  8. index af46cb8..244bb5b 100644
  9. --- a/build-aux/ltmain.in
  10. +++ b/build-aux/ltmain.in
  11. @@ -3382,7 +3382,7 @@
  12. /* declarations of non-ANSI functions */
  13. #if defined __MINGW32__
  14. -# ifdef __STRICT_ANSI__
  15. +# if defined(__STRICT_ANSI__) && !defined(__MINGW64_VERSION_MAJOR) || defined(_POSIX_)
  16. int _putenv (const char *);
  17. # endif
  18. #elif defined __CYGWIN__
  19. --
  20. 1.7.0.2.msysgit.0