summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-20 01:22:07 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-20 01:22:07 +0000
commit9d5e3111a5abbbbedcec1ca97ebfbb43093e8bca (patch)
tree6c90324f32f3a48a68965fa308236860415f2518 /include
parent96f59f5ab41fe7c2637139963bebecf09ea5a977 (diff)
downloadgcc-9d5e3111a5abbbbedcec1ca97ebfbb43093e8bca.tar.gz
2017-05-19 Eli Zaretskii <eliz@gnu.org>
* environ.h: Add #ifndef guard. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248308 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/environ.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 9b7a139bc26..52903816ac0 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-19 Eli Zaretskii <eliz@gnu.org>
+
+ * environ.h: Add #ifndef guard.
+
2017-05-18 Martin Liska <mliska@suse.cz>
* ansidecl.h: Define CONSTEXPR macro.
diff --git a/include/environ.h b/include/environ.h
index 326a27812db..32bb0b155c9 100644
--- a/include/environ.h
+++ b/include/environ.h
@@ -27,7 +27,9 @@ Boston, MA 02110-1301, USA. */
# include <crt_externs.h>
# define environ (*_NSGetEnviron ())
# else
+# ifndef environ
extern char **environ;
+# endif
# endif
# define HAVE_ENVIRON_DECL
#endif