Message ID | 834ng93l12.fsf@gnu.org |
---|---|
State | New |
Headers | show |
Index: libiberty/setenv.c =================================================================== RCS file: /cvs/src/src/libiberty/setenv.c,v retrieving revision 1.10 diff -u -r1.10 setenv.c --- libiberty/setenv.c 3 Feb 2011 07:23:59 -0000 1.10 +++ libiberty/setenv.c 17 Mar 2013 19:03:07 -0000 @@ -63,8 +63,11 @@ #define __environ environ #ifndef HAVE_ENVIRON_DECL +/* MinGW defines environ to call a function. */ +#ifndef environ extern char **environ; #endif +#endif #undef setenv #undef unsetenv