From 0ff0902bf00936434006e7102a0d46dcbaa8d0a9 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 20 May 2017 01:22:07 +0000 Subject: [PATCH] environ.h: Add #ifndef guard. 2017-05-19 Eli Zaretskii * environ.h: Add #ifndef guard. From-SVN: r248308 --- include/ChangeLog | 4 ++++ include/environ.h | 2 ++ 2 files changed, 6 insertions(+) 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 + + * environ.h: Add #ifndef guard. + 2017-05-18 Martin Liska * 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 # define environ (*_NSGetEnviron ()) # else +# ifndef environ extern char **environ; +# endif # endif # define HAVE_ENVIRON_DECL #endif -- 2.30.2