libiberty/setenv.c: Do not declare environ if defined as a macro.

2015-04-22  Eli Zaretskii  <eliz@gnu.org>

        * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
        macros.
        * setenv.c <environ>: Declare only if not a macro.

From-SVN: r222335
This commit is contained in:
Eli Zaretskii 2015-04-22 19:34:06 +00:00 committed by Joel Brobecker
parent fafb95a6fe
commit ffa176b09b
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-04-22 Eli Zaretskii <eliz@gnu.org>
* setenv.c <environ>: Declare only if not a macro.
2015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com> 2015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
* testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS. * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.

View File

@ -63,8 +63,10 @@ extern int errno;
#define __environ environ #define __environ environ
#ifndef HAVE_ENVIRON_DECL #ifndef HAVE_ENVIRON_DECL
#ifndef environ
extern char **environ; extern char **environ;
#endif #endif
#endif
#undef setenv #undef setenv
#undef unsetenv #undef unsetenv