Pedro Alves <pal...@redhat.com> writes: > That sounds to me like the root issue that should be fixed, > so that these fallback definitions don't come into into play at all. > I.e., why isn't HAVE_ENVIRON_DECL defined on mingw when > setenv.o is built? Sounds like a decl check is missing > in configure.ac.
environ is tricky because it's typically messy on platforms, unlike a standard C function. You can't use a generic check if the macro expands to something that interferes with the check.