From: Eli Zaretskii Date: Wed, 22 Apr 2015 19:34:06 +0000 (+0000) Subject: libiberty/setenv.c: Do not declare environ if defined as a macro. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffa176b09bd381da7820cb1ba9141cdb7e43a7aa;p=gcc.git libiberty/setenv.c: Do not declare environ if defined as a macro. 2015-04-22 Eli Zaretskii * strerror.c : Declare only if they aren't macros. * setenv.c : Declare only if not a macro. From-SVN: r222335 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index f02db93f8eb..651f8a9a5f0 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2015-04-22 Eli Zaretskii + + * setenv.c : Declare only if not a macro. + 2015-04-14 Max Ostapenko * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS. diff --git a/libiberty/setenv.c b/libiberty/setenv.c index 96917d5769f..714ca0a4076 100644 --- a/libiberty/setenv.c +++ b/libiberty/setenv.c @@ -63,8 +63,10 @@ extern int errno; #define __environ environ #ifndef HAVE_ENVIRON_DECL +#ifndef environ extern char **environ; #endif +#endif #undef setenv #undef unsetenv