0006-Fix-strict-ansi-vs-posix-mod.patch 666 B

1234567891011121314151617181920212223
  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.sh | 4 +++-
  6. 1 files changed, 1 insertions(+), 1 deletions(-)
  7. diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
  8. index af46cb8..244bb5b 100644
  9. --- a/build-aux/ltmain.sh
  10. +++ b/build-aux/ltmain.sh
  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